summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-10-07 12:55:16 +0200
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2022-10-10 16:34:25 +0200
commit2eeb7feefce82493bff89ae194462295d9345c1b (patch)
tree2dca2ac8676b2b87aeef6d0ed505a2a66a2a23ee /lib
parent88991b965f8343030a47d40287daa3b13a2dc212 (diff)
downloadu-boot-2eeb7feefce82493bff89ae194462295d9345c1b.tar.gz
u-boot-2eeb7feefce82493bff89ae194462295d9345c1b.tar.bz2
u-boot-2eeb7feefce82493bff89ae194462295d9345c1b.zip
efi_loader: printf code in efi_disk_get_device_name()
part is unsigned. So it must be printed with %u. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_disk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c
index e6a356b589..a2095050fd 100644
--- a/lib/efi_loader/efi_disk.c
+++ b/lib/efi_loader/efi_disk.c
@@ -786,7 +786,8 @@ efi_status_t efi_disk_get_device_name(const efi_handle_t handle, char *buf, int
if (is_partition) {
part_data = dev_get_uclass_plat(dev);
part = part_data->partnum;
- count = snprintf(buf, size, "%s %d:%d", if_typename, diskid, part);
+ count = snprintf(buf, size, "%s %d:%u", if_typename, diskid,
+ part);
} else {
count = snprintf(buf, size, "%s %d", if_typename, diskid);
}