summaryrefslogtreecommitdiffstats
path: root/commands/mem.c
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2012-08-07 22:51:06 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2012-08-09 08:44:38 +0200
commit58713d32746d49ad39ba17658fe82f1b98b80b2e (patch)
treeb78cb83013af68096991faf0f7bf62bd3524a786 /commands/mem.c
parent21ea2ad83046f154cca68a48aaa063911d5641e4 (diff)
downloadbarebox-58713d32746d49ad39ba17658fe82f1b98b80b2e.tar.gz
barebox-58713d32746d49ad39ba17658fe82f1b98b80b2e.tar.xz
commands: memset: fix help message
memset has no '-s' option so remove related help string. Also this patch makes the command's description more clear. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/mem.c')
-rw-r--r--commands/mem.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/commands/mem.c b/commands/mem.c
index cc94062dfc..ec46a48ef5 100644
--- a/commands/mem.c
+++ b/commands/mem.c
@@ -566,14 +566,13 @@ out:
}
static const __maybe_unused char cmd_memset_help[] =
-"Usage: memset [OPTIONS] <src> <c> <n>\n"
+"Usage: memset [OPTIONS] <addr> <c> <n>\n"
"\n"
"options:\n"
" -b, -w, -l use byte, halfword, or word accesses\n"
-" -s <file> source file (default /dev/mem)\n"
" -d <file> destination file (default /dev/mem)\n"
"\n"
-"Fill the first n bytes of area with byte c\n";
+"Fill the first <n> bytes at offset <addr> with byte <c>\n";
BAREBOX_CMD_START(memset)
.cmd = do_memset,