diff mbox series

[u-boot,2/3] tools: imagetool: Show error message when detecting image type failed

Message ID 20230129164555.9940-2-pali@kernel.org
State Accepted
Commit 6c58aa1e6167ab71d4d4121cd79372bf25d1792a
Delegated to: Tom Rini
Headers show
Series [u-boot,1/3] tools: imagetool: Fix error message when verify_header is undefined | expand

Commit Message

Pali Rohár Jan. 29, 2023, 4:45 p.m. UTC
Signed-off-by: Pali Rohár <pali@kernel.org>
---
 tools/imagetool.c | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Tom Rini Feb. 7, 2023, 4:53 p.m. UTC | #1
On Sun, Jan 29, 2023 at 05:45:54PM +0100, Pali Rohár wrote:

> Signed-off-by: Pali Rohár <pali@kernel.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/tools/imagetool.c b/tools/imagetool.c
index 688169b3a813..e1021f44f5ad 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;
 }