summaryrefslogtreecommitdiffstats
path: root/commands/memtest.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:02:13 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:02:13 +0200
commit40e4e2e659c8e798ee67e2a3acd13586c4c02e02 (patch)
tree489eead3eb0517dc1c3bf86179e4a45a3d7031dd /commands/memtest.c
parent32bee9f7decb7546fbb08f2ab956ccda3ed76d60 (diff)
downloadbarebox-40e4e2e659c8e798ee67e2a3acd13586c4c02e02.tar.gz
svn_rev_647
Diffstat (limited to 'commands/memtest.c')
-rw-r--r--commands/memtest.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/commands/memtest.c b/commands/memtest.c
index 877e97a..0d302ac 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