diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-05-25 19:00:13 +0300 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-06-09 01:16:39 +0300 |
commit | 3dca77b1dc1b6dbf9c8b51572fe4b0553cef009f (patch) | |
tree | 7b47d1e10ef56c45cd23ed85bb90aa16d83d5e7b /lib/efi_loader/efi_var_file.c | |
parent | 6a1d65e59f43ffcaf19fc75fd272bc4cc6dbe85d (diff) | |
download | u-boot-3dca77b1dc1b6dbf9c8b51572fe4b0553cef009f.tar.xz |
efi_loader: partition numbers are hexadecimal
If we want to address partition 15 of virtio block device 11, we have to
write:
virtio b:f
When calling sprintf() we must use %x for the device and partition numbers.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_loader/efi_var_file.c')
-rw-r--r-- | lib/efi_loader/efi_var_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_var_file.c b/lib/efi_loader/efi_var_file.c index b171d2d1a8..de076b8cbc 100644 --- a/lib/efi_loader/efi_var_file.c +++ b/lib/efi_loader/efi_var_file.c @@ -35,7 +35,7 @@ static efi_status_t __maybe_unused efi_set_blk_dev_to_system_partition(void) log_err("No EFI system partition\n"); return EFI_DEVICE_ERROR; } - snprintf(part_str, PART_STR_LEN, "%u:%u", + snprintf(part_str, PART_STR_LEN, "%x:%x", efi_system_partition.devnum, efi_system_partition.part); r = fs_set_blk_dev(blk_get_if_type_name(efi_system_partition.if_type), part_str, FS_TYPE_ANY); |