]> git.sur5r.net Git - u-boot/commitdiff
efi_loader: Add debug output for efi_add_memory_map()
authorAndreas Färber <afaerber@suse.de>
Sun, 17 Jul 2016 04:57:11 +0000 (06:57 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 22 Jul 2016 18:46:23 +0000 (14:46 -0400)
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>
lib/efi_loader/efi_memory.c

index df2381e42c2a82764ced80daba124f48142aba31..df3547c47f7e83498068b3c1b0d4d713a7da53b3 100644 (file)
@@ -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;