]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd/blk_common: clarify no partition error message
authorAlexandre Besnard <alexandre.besnard@softathome.com>
Fri, 20 Dec 2019 14:25:22 +0000 (15:25 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 16 Jan 2020 14:39:45 +0000 (09:39 -0500)
When no partition table is found, users should be warned so.
Warning that no device is available in this case could be misleading,
especially as it is the same error when no device is selected.

Signed-off-by: Alexandre Besnard <alexandre.besnard@softathome.com>
cmd/blk_common.c

index c5514cf8f8e81b0918f562b3b33e61f6fe98a140..cc6e161ba0aebeef3675a0a1cf9f67629695db78 100644 (file)
@@ -32,7 +32,8 @@ int blk_common_cmd(int argc, char * const argv[], enum if_type if_type,
                        return 0;
                } else if (strncmp(argv[1], "part", 4) == 0) {
                        if (blk_list_part(if_type))
-                               printf("\nno %s devices available\n", if_name);
+                               printf("\nno %s partition table available\n",
+                                      if_name);
                        return 0;
                }
                return CMD_RET_USAGE;