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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user