diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-10-15 01:47:40 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-10-21 03:46:04 +0200 |
commit | fc42b8bb75927e81f5c774e677abb990d23f0c38 (patch) | |
tree | 8cb7f1b12b45123432e6edb947dc78ecbef06c93 | |
parent | 0421735dd8ffc82db22c3767e7aa38c65fc7298e (diff) | |
download | u-boot-fc42b8bb75927e81f5c774e677abb990d23f0c38.zip u-boot-fc42b8bb75927e81f5c774e677abb990d23f0c38.tar.gz u-boot-fc42b8bb75927e81f5c774e677abb990d23f0c38.tar.bz2 |
efi_loader: simplify show_efi_boot_opt_data()
Use printf code %pD for printing device paths.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r-- | cmd/efidebug.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cmd/efidebug.c b/cmd/efidebug.c index 5235dbb..70a4658 100644 --- a/cmd/efidebug.c +++ b/cmd/efidebug.c @@ -1143,7 +1143,6 @@ static void show_efi_boot_opt_data(u16 *varname16, void *data, size_t *size) { struct efi_device_path *initrd_path = NULL; struct efi_load_option lo; - u16 *dp_str; efi_status_t ret; efi_uintn_t initrd_dp_size; const efi_guid_t lf2_initrd_guid = EFI_INITRD_MEDIA_GUID; @@ -1165,15 +1164,11 @@ static void show_efi_boot_opt_data(u16 *varname16, void *data, size_t *size) lo.attributes); printf(" label: %ls\n", lo.label); - dp_str = efi_dp_str(lo.file_path); - printf(" file_path: %ls\n", dp_str); - efi_free_pool(dp_str); + printf(" file_path: %pD\n", lo.file_path); initrd_path = efi_dp_from_lo(&lo, &initrd_dp_size, &lf2_initrd_guid); if (initrd_path) { - dp_str = efi_dp_str(initrd_path); - printf(" initrd_path: %ls\n", dp_str); - efi_free_pool(dp_str); + printf(" initrd_path: %pD\n", initrd_path); efi_free_pool(initrd_path); } |