All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Pali Rohár" <pali@kernel.org>
To: Simon Glass <sjg@chromium.org>
Cc: u-boot@lists.denx.de
Subject: [PATCH u-boot 2/3] tools: imagetool: Show error message when detecting image type failed
Date: Sun, 29 Jan 2023 17:45:54 +0100	[thread overview]
Message-ID: <20230129164555.9940-2-pali@kernel.org> (raw)
In-Reply-To: <20230129164555.9940-1-pali@kernel.org>

Signed-off-by: Pali Rohár <pali@kernel.org>
---
 tools/imagetool.c | 5 +++++
 1 file changed, 5 insertions(+)

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;
 }
 
-- 
2.20.1


  reply	other threads:[~2023-01-29 16:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-29 16:45 [PATCH u-boot 1/3] tools: imagetool: Fix error message when verify_header is undefined Pali Rohár
2023-01-29 16:45 ` Pali Rohár [this message]
2023-02-07 16:53   ` [PATCH u-boot 2/3] tools: imagetool: Show error message when detecting image type failed Tom Rini
2023-01-29 16:45 ` [PATCH u-boot 3/3] tools: imagetool: Skip autodetection of gpimage type Pali Rohár
2023-01-30 15:50   ` Simon Glass
2023-01-30 18:02     ` Tom Rini
2023-02-03 19:24       ` Pali Rohár
2023-02-03 20:23         ` Tom Rini
2023-02-07 16:53   ` Tom Rini
2023-01-30 15:50 ` [PATCH u-boot 1/3] tools: imagetool: Fix error message when verify_header is undefined Simon Glass
2023-02-07 16:53 ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230129164555.9940-2-pali@kernel.org \
    --to=pali@kernel.org \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.