From: Sascha Hauer <sha@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] resource: include region name in conflict's debug output
Date: Thu, 11 Mar 2021 09:54:28 +0100 [thread overview]
Message-ID: <20210311085428.GB23724@pengutronix.de> (raw)
In-Reply-To: <20210308151908.15416-1-a.fatoum@pengutronix.de>
On Mon, Mar 08, 2021 at 04:19:08PM +0100, Ahmad Fatoum wrote:
> The iomem command does print names, but it won't list dynamically
> allocated and deallocated regions, like those requested during bootm.
>
> Include region name in conflict debug output to make them easier
> to debug.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> common/resource.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
Applied, thanks
Sascha
>
> diff --git a/common/resource.c b/common/resource.c
> index 92fe96252fdc..ff4318a0d77f 100644
> --- a/common/resource.c
> +++ b/common/resource.c
> @@ -61,12 +61,14 @@ struct resource *__request_region(struct resource *parent,
> goto ok;
> if (start > r->end)
> continue;
> - debug("%s: 0x%08llx:0x%08llx conflicts with 0x%08llx:0x%08llx\n",
> + debug("%s: 0x%08llx:0x%08llx (%s) conflicts with 0x%08llx:0x%08llx (%s)\n",
> __func__,
> (unsigned long long)start,
> (unsigned long long)end,
> + name,
> (unsigned long long)r->start,
> - (unsigned long long)r->end);
> + (unsigned long long)r->end,
> + r->name);
> return ERR_PTR(-EBUSY);
> }
>
> --
> 2.29.2
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2021-03-11 8:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-08 15:19 Ahmad Fatoum
2021-03-11 8:54 ` Sascha Hauer [this message]
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=20210311085428.GB23724@pengutronix.de \
--to=sha@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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