efi: app: Only show the memory map when debugging

This is quite a long dump and is only useful when debugging. Show it
only if LOG_DEBUG is defined in this file.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-15 14:02:56 -06:00
parent 043c879dd1
commit a1f2aa6d5f

View File

@@ -8,6 +8,8 @@
* This file implements U-Boot running as an EFI application.
*/
#define LOG_CATEGORY LOGC_EFI
#include <cpu_func.h>
#include <debug_uart.h>
#include <dm.h>
@@ -307,7 +309,9 @@ int ft_system_setup(void *fdt, struct bd_info *bd)
if (ret)
return log_msg_ret("erm", ret);
efi_dump_mem_table(map, size, desc_size, false);
if (_DEBUG)
efi_dump_mem_table(map, size, desc_size, false);
ram_start = -1ULL;
ram_end = -1ULL;
end = (void *)map + size;