From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 2/2] common: bootdef: output resolution at info log level
Date: Mon, 14 Apr 2025 08:25:30 +0200 [thread overview]
Message-ID: <20250414062530.2731978-2-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20250414062530.2731978-1-a.fatoum@pengutronix.de>
To make it easier to follow how bootsource target is resolved, print out
the resolution as well as the concrete name of the target on error.
The latter is especially useful when specifying partitions, e.g.
bootsource.2.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
common/bootdef.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/bootdef.c b/common/bootdef.c
index 254228580191..e8140d3a6bce 100644
--- a/common/bootdef.c
+++ b/common/bootdef.c
@@ -13,6 +13,7 @@
static int bootdev_process(struct cdev *cdev, void *entries)
{
+ pr_info("resolved to %s\n", cdev->name);
return bootentry_create_from_name(entries, cdev->name);
}
@@ -22,7 +23,7 @@ static int bootdef_add_entry(struct bootentries *entries, const char *name)
ret = cdev_alias_resolve_for_each(name, bootdev_process, entries);
if (ret == -ENODEV) {
- pr_info("Could not autodetect bootsource device\n");
+ pr_info("Could not autodetect %s device\n", name);
return 0;
}
--
2.39.5
prev parent reply other threads:[~2025-04-14 6:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-14 6:25 [PATCH 1/2] commands: devlookup: add support for cdev aliases Ahmad Fatoum
2025-04-14 6:25 ` Ahmad Fatoum [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=20250414062530.2731978-2-a.fatoum@pengutronix.de \
--to=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