mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 07:04:28 +00:00
cmd: part: number: return hexadecimal value
At this point we are using part number sub-command to retrieve UUID
of the partition using it's name.
e.g.:
part number mmc $mmcdev system_a system_a_index
part uuid mmc $mmcdev:${system_a_index} system_a_uuid
Since 'part uuid' sub-command expects partition index in hex format and
'part number' returns decimal value, 'part uuid' command will provide
wrong UUID or fail.
Fixes: be683756f6
("cmd: part: Add 'number' sub-command")
Cc: Dirk Behme <dirk.behme@de.bosch.com>
Reported-by: Pontus Fuchs <pontus.fuchs@se.bosch.com>
Signed-off-by: Roman Stratiienko <roman.stratiienko@globallogic.com>
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Igor Opaniuk <igor.opaniuk@gmail.com>
This commit is contained in:
parent
46f0d9c46b
commit
400b9554cc
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ static int do_part_info(int argc, char * const argv[], enum cmd_part_info param)
|
|||
snprintf(buf, sizeof(buf), LBAF, info.size);
|
||||
break;
|
||||
case CMD_PART_INFO_NUMBER:
|
||||
snprintf(buf, sizeof(buf), "%d", part);
|
||||
snprintf(buf, sizeof(buf), "0x%x", part);
|
||||
break;
|
||||
default:
|
||||
printf("** Unknown cmd_part_info value: %d\n", param);
|
||||
|
|
Loading…
Reference in a new issue