Skip to contentSkip to conversation

efi_loader: Add debug output for efi_add_memory_map()

PATCH Superseded Andreas Färber 3 participants 4 messages Jul 17, 2016 – Jul 23, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 efi_loader: Add debug output for efi_add_memory_map()

Tracing the arguments has been helpful for pinpointing overflows.

---
 lib/efi_loader/efi_memory.c | 3 +++
 1 file changed, 3 insertions(+)
lib/efi_loader/efi_memory.c +3 -0
index df2381e..df3547c 100644
@@ -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;
 
Signature · 1 line
2.6.6
#1 lore raw

PATCH v2 1/1 efi_loader: Add debug output for efi_add_memory_map()

Am 17.07.2016 um 06:57 schrieb Andreas F?rber:

Quoted 7 lines

Tracing the arguments has been helpful for pinpointing overflows.

---
 lib/efi_loader/efi_memory.c | 3 +++
 1 file changed, 3 insertions(+)

v2 uses debug(), rebased on the DEBUG_EFI cleanup, requested by Tom.

Quoted 15 lines
lib/efi_loader/efi_memory.c +3 -0
index df2381e..df3547c 100644
@@ -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;
 
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)
#3 lore raw

PATCH v2 1/1 efi_loader: Add debug output for efi_add_memory_map()

In reply to Andreas Färber
Quoted 5 lines · Andreas F?rber

Tracing the arguments has been helpful for pinpointing overflows.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160722/a8c1a7a8/attachment.sig>