[U-Boot] [PATCH] cmd: part: number: return hexadecimal value

Tom Rini trini at konsulko.com
Fri Sep 20 14:21:29 UTC 2019


On Fri, Sep 20, 2019 at 03:59:18PM +0200, Eugeniu Rosca wrote:

> From: Roman Stratiienko <roman.stratiienko at globallogic.com>
> 
> 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: be683756f62034 ("cmd: part: Add 'number' sub-command")
> Cc: Dirk Behme <dirk.behme at de.bosch.com>
> Reported-by: Pontus Fuchs <pontus.fuchs at se.bosch.com>
> Signed-off-by: Roman Stratiienko <roman.stratiienko at globallogic.com>
> Signed-off-by: Eugeniu Rosca <erosca at de.adit-jv.com>


Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190920/ebbbc35b/attachment.sig>


More information about the U-Boot mailing list