mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-16 05:58:49 +00:00
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>
This commit is contained in:
parent
88991b965f
commit
2eeb7feefc
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue