From 72c3f5dbd9545259a7eb04a7d21dff9b318de77e Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Wed, 23 Nov 2022 12:55:32 +0100 Subject: [PATCH] tools: mkimage: don't print error message "Success" in case of failure In case there's no struct image_type_params::set_header callback, no "errno" will be set. Don't fail with an error message, followed by "Success". Remove the printing of the human readable "errno" value. Signed-off-by: Marc Kleine-Budde Reviewed-by: Simon Glass --- tools/mkimage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mkimage.c b/tools/mkimage.c index 0b5ee5da1e..8306861ce5 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -765,8 +765,8 @@ int main(int argc, char **argv) if (tparams->set_header) tparams->set_header (ptr, &sbuf, ifd, ¶ms); else { - fprintf (stderr, "%s: Can't set header for %s: %s\n", - params.cmdname, tparams->name, strerror(errno)); + fprintf (stderr, "%s: Can't set header for %s\n", + params.cmdname, tparams->name); exit (EXIT_FAILURE); }