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

Pali Rohár
2023-01-29T16:46:32Z

Signed-off-by: Pali Rohár <pali@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