]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools: imagetool: Show error message when detecting image type failed
authorPali Rohár <pali@kernel.org>
Sun, 29 Jan 2023 16:45:54 +0000 (17:45 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 6 Feb 2023 19:35:14 +0000 (14:35 -0500)
Signed-off-by: Pali Rohár <pali@kernel.org>
tools/imagetool.c

index 688169b3a8130f004a70ab6a7ec0655e79f470fc..e1021f44f5add76ca462f5668a565e1918ad14b8 100644 (file)
@@ -71,6 +71,11 @@ int imagetool_verify_print_header(
                }
        }
 
+       if (retval != 0) {
+               fprintf(stderr, "%s: cannot detect image type\n",
+                       params->cmdname);
+       }
+
        return retval;
 }