]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi: Correct display of table GUIDs
authorSimon Glass <sjg@chromium.org>
Sun, 12 Nov 2023 20:55:10 +0000 (13:55 -0700)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 5 Dec 2023 00:38:56 +0000 (01:38 +0100)
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>
cmd/efi_common.c

index f4056096cd3ff1ded3e032dfd9d53fbd86dc1479..1aa2351fcdfde8435f6614066e24798a5b7904dc 100644 (file)
@@ -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)");
        }
 }