diff options
Diffstat (limited to 'commands/memtest.c')
-rw-r--r-- | commands/memtest.c | 16 |
1 files changed, 10 insertions, 6 deletions
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 <common.h> #include <command.h> +#include <types.h> #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 |