From: Heinrich Schuchardt Date: Fri, 7 Oct 2022 10:55:16 +0000 (+0200) Subject: efi_loader: printf code in efi_disk_get_device_name() X-Git-Tag: v2023.07~306^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2eeb7feefce82493bff89ae194462295d9345c1b;p=platform%2Fkernel%2Fu-boot.git 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 Reviewed-by: Ilias Apalodimas --- diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c index e6a356b..a209505 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); }