[PATCH mtd-utils 01/11] flash_{un, }lock: nest optional parameters in help message

Brian Norris computersforpeace at gmail.com
Mon Aug 31 15:34:22 PDT 2015


block count should be nested within the optional offset listing. That
is, we require offset before we accept a block count.

Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 flash_unlock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flash_unlock.c b/flash_unlock.c
index 1cc8c2ff2d9b..ee8ac890f61c 100644
--- a/flash_unlock.c
+++ b/flash_unlock.c
@@ -28,7 +28,7 @@
 static void usage(int status)
 {
 	fprintf(status ? stderr : stdout,
-		"Usage: %s <mtd device> [offset] [block count]\n\n"
+		"Usage: %s <mtd device> [offset [block count]]\n\n"
 		"If offset is not specified, it defaults to 0.\n"
 		"If block count is not specified, it defaults to all blocks.\n",
 		PROGRAM_NAME);
-- 
2.5.0.457.gab17608




More information about the linux-mtd mailing list