aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-11-12 13:55:10 -0700
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-12-05 01:38:56 +0100
commit8c06b27eec8c3e5c7316a0525b596f26e001b0f3 (patch)
tree868bb9f9f065959aac664f59f8834df6268ca0db
parenta900d88e1af013362bb9243530af1bb80935389b (diff)
downloadu-boot-8c06b27eec8c3e5c7316a0525b596f26e001b0f3.zip
u-boot-8c06b27eec8c3e5c7316a0525b596f26e001b0f3.tar.gz
u-boot-8c06b27eec8c3e5c7316a0525b596f26e001b0f3.tar.bz2
efi: Correct display of table GUIDs
The printf() %pU option decodes GUIDs so it is not necessary to do this first. Drop the incorrect code. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r--cmd/efi_common.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/efi_common.c b/cmd/efi_common.c
index f405609..1aa2351 100644
--- a/cmd/efi_common.c
+++ b/cmd/efi_common.c
@@ -17,10 +17,8 @@ void efi_show_tables(struct efi_system_table *systab)
for (i = 0; i < systab->nr_tables; i++) {
struct efi_configuration_table *tab = &systab->tables[i];
- char guid_str[37];
- uuid_bin_to_str(tab->guid.b, guid_str, 1);
- printf("%p %pUl %s\n", tab->table, guid_str,
+ printf("%p %pUl %s\n", tab->table, tab->guid.b,
uuid_guid_get_str(tab->guid.b) ?: "(unknown)");
}
}