diff options
author | Pali Rohár <pali@kernel.org> | 2023-01-29 19:45:54 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-02-06 22:35:14 +0300 |
commit | 6c58aa1e6167ab71d4d4121cd79372bf25d1792a (patch) | |
tree | 15ed6fa8c11afe3895ddc4295f91f89a1a9c9419 /tools | |
parent | 27e46a991c188b523f98c1a8a455cc7dc912eea1 (diff) | |
download | u-boot-6c58aa1e6167ab71d4d4121cd79372bf25d1792a.tar.xz |
tools: imagetool: Show error message when detecting image type failed
Signed-off-by: Pali Rohár <pali@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/imagetool.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/imagetool.c b/tools/imagetool.c index 688169b3a8..e1021f44f5 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; } |