From 6c58aa1e6167ab71d4d4121cd79372bf25d1792a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= Date: Sun, 29 Jan 2023 17:45:54 +0100 Subject: tools: imagetool: Show error message when detecting image type failed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pali Rohár --- tools/imagetool.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/imagetool.c') 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; } -- cgit v1.2.1