diff options
author | Simon Glass | 2023-03-20 08:30:14 +1300 |
---|---|---|
committer | Heinrich Schuchardt | 2023-03-25 11:07:22 +0100 |
commit | 041840eeeb129ab979cbc05d6c5fb80162f50add (patch) | |
tree | 81429a88821eb48c03138af7d5f5b84ea76062ee /cmd/efidebug.c | |
parent | 30c9646eff1e8559865e3eb6581c15e96660d254 (diff) |
efi: Split out table-listing code into a new file
This code is used with EFI_LOADER but is also useful (with some
modifications) for the EFI app and payload. Move it into a shared
file.
Show the address of the table so it can be examined if needed. Also show
the table name as unknown if necessary. Our list of GUIDs is fairly
small.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/efidebug.c')
-rw-r--r-- | cmd/efidebug.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd/efidebug.c b/cmd/efidebug.c index e6959ede930..9622430c475 100644 --- a/cmd/efidebug.c +++ b/cmd/efidebug.c @@ -649,11 +649,7 @@ static int do_efi_show_memmap(struct cmd_tbl *cmdtp, int flag, static int do_efi_show_tables(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { - efi_uintn_t i; - - for (i = 0; i < systab.nr_tables; ++i) - printf("%pUl (%pUs)\n", - &systab.tables[i].guid, &systab.tables[i].guid); + efi_show_tables(&systab); return CMD_RET_SUCCESS; } |