[PATCH u-boot 2/3] tools: imagetool: Show error message when detecting image type failed

Pali Rohár pali at kernel.org
Sun Jan 29 17:45:54 CET 2023


Signed-off-by: Pali Rohár <pali at kernel.org>
---
 tools/imagetool.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/imagetool.c b/tools/imagetool.c
index 688169b3a813..e1021f44f5ad 100644
--- a/tools/imagetool.c
+++ b/tools/imagetool.c
@@ -71,6 +71,11 @@ int imagetool_verify_print_header(
 		}
 	}
 
+	if (retval != 0) {
+		fprintf(stderr, "%s: cannot detect image type\n",
+			params->cmdname);
+	}
+
 	return retval;
 }
 
-- 
2.20.1



More information about the U-Boot mailing list