From: Alexander Graf <agraf@suse.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] efi_loader: Add debug output for efi_add_memory_map()
Date: Wed, 13 Apr 2016 11:25:52 +0200 [thread overview]
Message-ID: <570E10A0.8030004@suse.de> (raw)
In-Reply-To: <1460518430-7101-1-git-send-email-afaerber@suse.de>
On 13.04.16 05:33, Andreas F?rber wrote:
> 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>
Alex
> ---
> lib/efi_loader/efi_memory.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c
> index df99585..138736f 100644
> --- a/lib/efi_loader/efi_memory.c
> +++ b/lib/efi_loader/efi_memory.c
> @@ -123,6 +123,11 @@ uint64_t efi_add_memory_map(uint64_t start, uint64_t pages, int memory_type,
> struct efi_mem_list *newlist;
> bool do_carving;
>
> +#ifdef DEBUG_EFI
> + printf("%s: 0x%" PRIx64 " 0x%" PRIx64 " %d %s\n", __func__,
> + start, pages, memory_type, overlap_only_ram ? "yes" : "no");
> +#endif
> +
> if (!pages)
> return start;
>
>
next prev parent reply other threads:[~2016-04-13 9:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-13 3:33 [U-Boot] [PATCH] efi_loader: Add debug output for efi_add_memory_map() Andreas Färber
2016-04-13 9:25 ` Alexander Graf [this message]
2016-04-18 16:26 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=570E10A0.8030004@suse.de \
--to=agraf@suse.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox