[PATCH 2/2] boot: correct error message in fit_find_config_node()

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sun Feb 9 12:52:17 CET 2025


If the description property is missing in a configuration of a FIT image,
relating to it as 'FDT description in DTB' is misleading. Provide a
message indicating which configuration node has an issue.

As this situation is not fatal anymore, decrease the default SPL size by
making this a debug message.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 boot/common_fit.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/boot/common_fit.c b/boot/common_fit.c
index 4c134e0e86f..7b5bea1dfde 100644
--- a/boot/common_fit.c
+++ b/boot/common_fit.c
@@ -54,8 +54,8 @@ int fit_find_config_node(const void *fdt)
 		name = fdt_getprop(fdt, node, "description", &len);
 		if (!name) {
 #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
-			printf("%s: Missing FDT description in DTB\n",
-			       __func__);
+			log_debug("Missing description in config %s\n",
+				  fdt_get_name(fdt, node, NULL));
 #endif
 			continue;
 		}
-- 
2.47.1



More information about the U-Boot mailing list