blob: c46764e6eea74258aafebd031255a0f91a801795 [file] [log] [blame]
Simon Glass55de3e52023-03-20 08:30:14 +13001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Common code for EFI commands
4 *
5 * Copyright 2023 Google LLC
6 * Written by Simon Glass <sjg@chromium.org>
7 */
8
Simon Glass55de3e52023-03-20 08:30:14 +13009#include <efi.h>
10#include <efi_api.h>
11#include <uuid.h>
12
13void efi_show_tables(struct efi_system_table *systab)
14{
15 int i;
16
17 for (i = 0; i < systab->nr_tables; i++) {
18 struct efi_configuration_table *tab = &systab->tables[i];
Simon Glass55de3e52023-03-20 08:30:14 +130019
Simon Glass1d15cb32023-11-12 13:55:10 -070020 printf("%p %pUl %s\n", tab->table, tab->guid.b,
Simon Glass55de3e52023-03-20 08:30:14 +130021 uuid_guid_get_str(tab->guid.b) ?: "(unknown)");
22 }
23}