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