From: Simon Glass Date: Sun, 12 Nov 2023 20:55:10 +0000 (-0700) Subject: efi: Correct display of table GUIDs X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=8c06b27eec8c3e5c7316a0525b596f26e001b0f3;p=u-boot.git 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 Reviewed-by: Ilias Apalodimas Reviewed-by: Heinrich Schuchardt --- diff --git a/cmd/efi_common.c b/cmd/efi_common.c index f4056096cd..1aa2351fcd 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)"); } }