]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: part: number: return hexadecimal value
authorRoman Stratiienko <roman.stratiienko@globallogic.com>
Fri, 20 Sep 2019 13:59:18 +0000 (15:59 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 4 Oct 2019 16:21:23 +0000 (12:21 -0400)
commit0becd2ad5019f069fb6fad20fe03871f5c8589b5
treecfbf3c57768a812e3298555b7f182ef55a12a2d4
parentd47fb36cc664ee445a4656f94103c33e01bca336
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: 4fb56c0edd18cf ("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>
cmd/part.c