[PATCH 1/1] boot/image-fit: improve 'No Image' message
Heinrich Schuchardt
heinrich.schuchardt at canonical.com
Wed Apr 30 09:16:13 CEST 2025
If an initrd is invalid, we see output like
No Unknown OS RISC-V RAMDisk Image Image
Ramdisk image is corrupt or invalid
As most image type descriptions end on Image, we should not repeat that
word. Instead of misleading 'No' we should write 'Invalid' here.
Invalid Unknown OS RISC-V RAMDisk Image
Ramdisk image is corrupt or invalid
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
boot/image-fit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/boot/image-fit.c b/boot/image-fit.c
index 41ab1f552b0..856de6b731a 100644
--- a/boot/image-fit.c
+++ b/boot/image-fit.c
@@ -2196,7 +2196,7 @@ int fit_image_load(struct bootm_headers *images, ulong addr,
*/
if ((!type_ok || !os_ok) && image_type != IH_TYPE_LOADABLE) {
fit_image_get_os(fit, noffset, &os);
- printf("No %s %s %s Image\n",
+ printf("Invalid %s %s %s\n",
genimg_get_os_name(os),
genimg_get_arch_name(arch),
genimg_get_type_name(image_type));
--
2.48.1
More information about the U-Boot
mailing list