From: Andreas Färber Date: Sun, 17 Jul 2016 04:57:11 +0000 (+0200) Subject: efi_loader: Add debug output for efi_add_memory_map() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=c933ed94bc866606f2edae8b4a914880e7e1f501;p=u-boot.git efi_loader: Add debug output for efi_add_memory_map() Tracing the arguments has been helpful for pinpointing overflows. Cc: Alexander Graf Signed-off-by: Andreas Färber Reviewed-by: Alexander Graf --- diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c index df2381e42c..df3547c47f 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;