From 40e4e2e659c8e798ee67e2a3acd13586c4c02e02 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 5 Jul 2007 18:02:13 +0200 Subject: svn_rev_647 --- commands/memtest.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'commands/memtest.c') diff --git a/commands/memtest.c b/commands/memtest.c index 877e97a45c..0d302acd74 100644 --- a/commands/memtest.c +++ b/commands/memtest.c @@ -23,6 +23,7 @@ #include #include +#include #ifdef CMD_MEM_DEBUG #define PRINTF(fmt,args...) printf (fmt ,##args) @@ -340,9 +341,12 @@ int do_mem_mtest (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) #endif } -U_BOOT_CMD( - mtest, 4, 0, do_mem_mtest, - "mtest - simple RAM test\n", - "[start [end [pattern]]]\n" - " - simple RAM read/write test\n" -); +static __maybe_unused char cmd_ls_help[] = +"Usage: [start [end [pattern]]]\n" +"simple RAM read/write test\n"; + +U_BOOT_CMD_START(mtest) + .maxargs = 4, + .cmd = do_mem_mtest, + .usage = "simple RAM test", +U_BOOT_CMD_END -- cgit v1.2.3