mmc_utils: gp create: only allow partition [1-4] to be selected
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
This commit is contained in:
1 parent
d0b46442b5
commit
928ff072be
1 file changed
+2
-2
+2
-2
@@ -684,8 +684,8 @@ int do_create_gp_partition(int nargs, char **argv)
|
||||
ext_attr = strtol(argv[5], NULL, 10);
|
||||
device = argv[6];
|
||||
|
||||
if (partition < 0 || partition > 4) {
|
||||
printf("Invalid gp parition number valid range [1-4]\n");
|
||||
if (partition < 1 || partition > 4) {
|
||||
printf("Invalid gp partition number; valid range [1-4].\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user