mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-22 04:44:46 +00:00

As part of bringing the master branch back in to next, we need to allow for all of these changes to exist here. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
23 lines
494 B
C
23 lines
494 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Common code for EFI commands
|
|
*
|
|
* Copyright 2023 Google LLC
|
|
* Written by Simon Glass <sjg@chromium.org>
|
|
*/
|
|
|
|
#include <efi.h>
|
|
#include <efi_api.h>
|
|
#include <uuid.h>
|
|
|
|
void efi_show_tables(struct efi_system_table *systab)
|
|
{
|
|
int i;
|
|
|
|
for (i = 0; i < systab->nr_tables; i++) {
|
|
struct efi_configuration_table *tab = &systab->tables[i];
|
|
|
|
printf("%p %pUl %s\n", tab->table, tab->guid.b,
|
|
uuid_guid_get_str(tab->guid.b) ?: "(unknown)");
|
|
}
|
|
}
|