summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2015-12-09 09:48:04 -0700
committerTom Rini <trini@konsulko.com>2015-12-13 20:22:01 -0500
commit653447b407ba2774eb398e7b35f80d2e25463da6 (patch)
treef55e149b4f47f1bfda2be410226df98bd4193e56
parent69bf2d2fafe64349be3c3ef1256e3c68f812bb25 (diff)
downloadu-boot-imx-653447b407ba2774eb398e7b35f80d2e25463da6.zip
u-boot-imx-653447b407ba2774eb398e7b35f80d2e25463da6.tar.gz
u-boot-imx-653447b407ba2774eb398e7b35f80d2e25463da6.tar.bz2
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>
-rw-r--r--common/cmd_part.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_part.c b/common/cmd_part.c
index b860624..5599509 100644
--- a/common/cmd_part.c
+++ b/common/cmd_part.c
@@ -100,7 +100,7 @@ static int do_part_list(int argc, char * const argv[])
if (bootable && !info.bootable)
continue;
- sprintf(t, "%s%d", str[0] ? " " : "", p);
+ sprintf(t, "%s%x", str[0] ? " " : "", p);
strcat(str, t);
}
setenv(var, str);