[PATCH mtd-utils 11/11] flash_{un,}lock: document block count == -1

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


These utilities have accepted -1 as a block count to mean "all blocks."
Let's document that.

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

diff --git a/flash_unlock.c b/flash_unlock.c
index d775c0b01950..f51870aeb69f 100644
--- a/flash_unlock.c
+++ b/flash_unlock.c
@@ -52,7 +52,8 @@ static void usage(int status)
 		" -u         --unlock            Unlock a region of flash\n"
 		"\n"
 		"If offset is not specified, it defaults to 0.\n"
-		"If block count is not specified, it defaults to all blocks.\n",
+		"If block count is not specified, it defaults to all blocks.\n"
+		"A block count of -1 means all blocks.\n",
 		flash_msg[DEFAULT_REQUEST],
 		PROGRAM_NAME);
 	exit(status);
-- 
2.5.0.457.gab17608




More information about the linux-mtd mailing list