Skip to contentSkip to conversation

commands: memset: fix help message

PATCH Applied Antony Pavlov 2 participants 2 messages Aug 7, 2012 – Aug 9, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 commands/mem.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
commands/mem.c +2 -3
index cc94062..ec46a48 100644
@@ -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,
Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 4 lines · Antony Pavlov

memset has no '-s' option so remove related help string. Also this patch makes the command's description more clear.

Applied, thanks

Sascha

Quoted 34 lines
---
 commands/mem.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
commands/mem.c +2 -3
index cc94062..ec46a48 100644
@@ -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,
Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox