commit | d88ac09daf77b61bc36a3297989a979722860c55 | [log] [tgz] |
---|---|---|
author | Pali Rohár <pali@kernel.org> | Sun Jan 29 17:45:54 2023 +0100 |
committer | Tom Rini <trini@konsulko.com> | Mon Feb 06 14:35:14 2023 -0500 |
tree | 15ed6fa8c11afe3895ddc4295f91f89a1a9c9419 | |
parent | 0c082092f37898090a4b2ed7733d54d55f613543 [diff] |
tools: imagetool: Show error message when detecting image type failed Signed-off-by: Pali Rohár <pali@kernel.org>
diff --git a/tools/imagetool.c b/tools/imagetool.c index 688169b..e1021f4 100644 --- a/tools/imagetool.c +++ b/tools/imagetool.c
@@ -71,6 +71,11 @@ } } + if (retval != 0) { + fprintf(stderr, "%s: cannot detect image type\n", + params->cmdname); + } + return retval; }