]> www.infradead.org Git - mtd-utils.git/commitdiff
flash_{un,}lock: document block count == -1
authorBrian Norris <computersforpeace@gmail.com>
Mon, 31 Aug 2015 21:39:47 +0000 (14:39 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 11 Nov 2015 22:05:36 +0000 (14:05 -0800)
These utilities have accepted -1 as a block count to mean "all blocks."
Let's document that.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
flash_unlock.c

index d775c0b01950e64a7c9ae8b6823e7dc68b1cdc2b..f51870aeb69f2819ff44da305caaf6a73918f572 100644 (file)
@@ -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);