]> Git Repo - u-boot.git/commitdiff
efi_loader: Add debug output for efi_add_memory_map()
authorAndreas Färber <[email protected]>
Sun, 17 Jul 2016 04:57:11 +0000 (06:57 +0200)
committerTom Rini <[email protected]>
Fri, 22 Jul 2016 18:46:23 +0000 (14:46 -0400)
Tracing the arguments has been helpful for pinpointing overflows.

Cc: Alexander Graf <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
Reviewed-by: Alexander Graf <[email protected]>
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;
 
This page took 0.036464 seconds and 4 git commands to generate.