diff options
| author | Andreas Färber <[email protected]> | 2016-07-17 06:57:11 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2016-07-22 14:46:23 -0400 |
| commit | c933ed94bc866606f2edae8b4a914880e7e1f501 (patch) | |
| tree | 354146de4272fefdf87a3e09230ecaffe9831503 /lib | |
| parent | c5c41c45b1025aa951c794bb8add9c7c806496ee (diff) | |
efi_loader: Add debug output for efi_add_memory_map()
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]>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/efi_loader/efi_memory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c index df2381e42c2..df3547c47f7 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; |
