[PATCH] command: memset: Fix argument order in help text

Sascha Hauer s.hauer at pengutronix.de
Sun Nov 9 23:01:38 PST 2014


memset takes ADDR DATA COUNT just like the C function, not
ADDR COUNT DATA.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 commands/memset.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands/memset.c b/commands/memset.c
index f869306..bb5f46d 100644
--- a/commands/memset.c
+++ b/commands/memset.c
@@ -98,7 +98,7 @@ BAREBOX_CMD_HELP_END
 BAREBOX_CMD_START(memset)
 	.cmd		= do_memset,
 	BAREBOX_CMD_DESC("memory fill")
-	BAREBOX_CMD_OPTS("[-bwld] ADDR COUNT DATA")
+	BAREBOX_CMD_OPTS("[-bwld] ADDR DATA COUNT")
 	BAREBOX_CMD_GROUP(CMD_GRP_MEM)
 	BAREBOX_CMD_HELP(cmd_memset_help)
 BAREBOX_CMD_END
-- 
2.1.1




More information about the barebox mailing list