summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2016-07-17 06:57:11 +0200
committerTom Rini <trini@konsulko.com>2016-07-22 14:46:23 -0400
commitc933ed94bc866606f2edae8b4a914880e7e1f501 (patch)
tree354146de4272fefdf87a3e09230ecaffe9831503
parentc5c41c45b1025aa951c794bb8add9c7c806496ee (diff)
downloadu-boot-imx-c933ed94bc866606f2edae8b4a914880e7e1f501.zip
u-boot-imx-c933ed94bc866606f2edae8b4a914880e7e1f501.tar.gz
u-boot-imx-c933ed94bc866606f2edae8b4a914880e7e1f501.tar.bz2
efi_loader: Add debug output for efi_add_memory_map()
Tracing the arguments has been helpful for pinpointing overflows. Cc: Alexander Graf <agraf@suse.de> Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Alexander Graf <agraf@suse.de>
-rw-r--r--lib/efi_loader/efi_memory.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c
index df2381e..df3547c 100644
--- a/lib/efi_loader/efi_memory.c
+++ b/lib/efi_loader/efi_memory.c
@@ -130,6 +130,9 @@ uint64_t efi_add_memory_map(uint64_t start, uint64_t pages, int memory_type,
bool carve_again;
uint64_t carved_pages = 0;
+ debug("%s: 0x%" PRIx64 " 0x%" PRIx64 " %d %s\n", __func__,
+ start, pages, memory_type, overlap_only_ram ? "yes" : "no");
+
if (!pages)
return start;