diff options
| author | Pali Rohár <[email protected]> | 2023-01-29 17:45:54 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-02-06 14:35:14 -0500 |
| commit | 6c58aa1e6167ab71d4d4121cd79372bf25d1792a (patch) | |
| tree | 15ed6fa8c11afe3895ddc4295f91f89a1a9c9419 | |
| parent | 27e46a991c188b523f98c1a8a455cc7dc912eea1 (diff) | |
tools: imagetool: Show error message when detecting image type failed
Signed-off-by: Pali Rohár <[email protected]>
| -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 688169b3a81..e1021f44f5a 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; } |
