From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] bootm: include origin of device tree in verbose output
Date: Wed, 24 Jun 2026 08:06:47 +0200 [thread overview]
Message-ID: <20260624060648.1845974-1-a.fatoum@pengutronix.de> (raw)
To make it easier to see at a glance if the device tree to be passed to
Linux is barebox' own or an externally provided DT, include this
information into verbosity level 1.
Previously we only printed "using internal devicetree" at verbosity
level 2, but that's the same level we dump the whole DT, so we bump it
down a level and rename it to make it clear what the DT is internal to
(e.g. it's not a FIT-internal DT).
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
common/bootm.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/common/bootm.c b/common/bootm.c
index 26465875ad94..de1b87fe2072 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -328,13 +328,19 @@ void *bootm_get_devicetree(struct image_data *data)
return ERR_PTR(-EINVAL);
}
+ if (bootm_verbose(data))
+ printf("using %s as devicetree\n", data->oftree->name);
+
} else {
data->of_root_node = of_dup_root_node_for_boot();
- if (!data->of_root_node)
+ if (!data->of_root_node) {
+ if (bootm_verbose(data))
+ printf("using no devicetree\n");
return NULL;
+ }
- if (bootm_verbose(data) > 1)
- printf("using internal devicetree\n");
+ if (bootm_verbose(data))
+ printf("using barebox's internal devicetree\n");
}
if (data->initrd_res) {
--
2.47.3
reply other threads:[~2026-06-24 6:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20260624060648.1845974-1-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