]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
boot/fit: print name of config node not found
authorFrank Wunderlich <frank-w@public-files.de>
Fri, 16 Jan 2026 18:29:02 +0000 (19:29 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 27 Jan 2026 22:19:54 +0000 (16:19 -0600)
Show name of configuration node which was not found.

current state gives no hint if fit image is wrong or the requested name.

Could not find configuration node
load of <NULL> failed

After this patch we see name like this:

Could not find configuration node '#ov-test'
load of <NULL> failed

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
boot/image-fit.c

index 2d040e38d97b3f38ac49761311eed3363045edd0..85026c2d1d02aa1845efa28ca5e3519cb0204c97 100644 (file)
@@ -2125,7 +2125,8 @@ int fit_image_load(struct bootm_headers *images, ulong addr,
                if (ret < 0 && ret != -EINVAL)
                        ret = fit_conf_get_node(fit, fit_uname_config);
                if (ret < 0) {
-                       puts("Could not find configuration node\n");
+                       printf("Could not find configuration node '%s'\n",
+                              fit_uname_config ? fit_uname_config : "(null)");
                        bootstage_error(bootstage_id +
                                        BOOTSTAGE_SUB_NO_UNIT_NAME);
                        return -ENOENT;