part: fix "part list ... -bootable varname" to use hex
authorStephen Warren <swarren@nvidia.com>
Wed, 9 Dec 2015 16:48:04 +0000 (09:48 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 14 Dec 2015 01:22:01 +0000 (20:22 -0500)
commit653447b407ba2774eb398e7b35f80d2e25463da6
treef55e149b4f47f1bfda2be410226df98bd4193e56
parent69bf2d2fafe64349be3c3ef1256e3c68f812bb25
part: fix "part list ... -bootable varname" to use hex

Unfortunately U-Boot assumes that almost all numbers are in hex, including
partition numbers passed to e.g. "load". So, the command "part list mmc 0
-bootable devplist" should use hex when writing partition numbers into
$devplist, so they'll be correctly interpreted.

Change-Id: I9a70b19749643876baadb45efbc3decaef8bfee2
Fixes: 0798d6fd4191 ("part: Add support for list filtering on bootable partitions")
Cc: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
common/cmd_part.c