From: Heinrich Schuchardt Date: Sat, 26 Aug 2023 01:53:43 +0000 (+0200) Subject: cmd: let gpt_partition_entry be hexadecimal X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=eeef584015209cd8f23d438f8a29e8065838d34f;p=u-boot.git 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 Reviewed-by: Simon Glass --- 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;