efi_loader: Add debug output for efi_add_memory_map()
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
@@ -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
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.
Cc Alexander Graf <[email protected]>Signed-off-by Andreas F?rber <[email protected]>--- 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@@ -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)
PATCH v2 1/1 efi_loader: Add debug output for efi_add_memory_map()
In reply to Andreas FärberQuoted 8 lines
Am 17.07.2016 um 06:57 schrieb Andreas F?rber <[email protected]>:
Tracing the arguments has been helpful for pinpointing overflows.
Cc Alexander Graf <[email protected]>Signed-off-by Andreas F?rber <[email protected]>
Thanks :)
Alex
PATCH v2 1/1 efi_loader: Add debug output for efi_add_memory_map()
In reply to Andreas FärberQuoted 5 lines · Andreas F?rber
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]>
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>