* [PATCH] bootm: include origin of device tree in verbose output
@ 2026-06-24 6:06 Ahmad Fatoum
0 siblings, 0 replies; only message in thread
From: Ahmad Fatoum @ 2026-06-24 6:06 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-24 6:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-24 6:06 [PATCH] bootm: include origin of device tree in verbose output Ahmad Fatoum
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox