summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-08-26 03:53:43 +0200
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-08-27 08:21:08 +0200
commiteeef584015209cd8f23d438f8a29e8065838d34f (patch)
treebd3305e51e5c61cb85e720872766bd5eef015b4d /cmd
parent41cd23b7be6e097daa5c2b1eda5539de227bf745 (diff)
downloadu-boot-eeef584015209cd8f23d438f8a29e8065838d34f.tar.gz
u-boot-eeef584015209cd8f23d438f8a29e8065838d34f.tar.bz2
u-boot-eeef584015209cd8f23d438f8a29e8065838d34f.zip
cmd: let gpt_partition_entry be hexadecimal
In commands like 'ls mmc 0:f' the partition number is hexadecimal. In command 'gpt setenv' variable gpt_partition_entry needs to be set to a hexadecimal value to allow its use as a parameter in a subsequent command. Fixes: 57f8cf1b9aea ("cmd: fix gpt enumerate") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gpt.c b/cmd/gpt.c
index 99ca0a6163..964056bd28 100644
--- a/cmd/gpt.c
+++ b/cmd/gpt.c
@@ -744,7 +744,7 @@ static int gpt_setenv_part_variables(struct disk_partition *pinfo, int i)
if (ret)
goto fail;
- ret = env_set_ulong("gpt_partition_entry", i);
+ ret = env_set_hex("gpt_partition_entry", i);
if (ret)
goto fail;