diff options
| author | Guillaume GARDET <[email protected]> | 2018-03-30 10:28:19 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2018-04-10 11:52:16 -0400 |
| commit | 004d00914a1888a050ef2d30e52e8e3862983ccb (patch) | |
| tree | 9ab1725b59980e5ea2480fa4f960951737609525 /tools | |
| parent | d409c962169bd293e39386d0ddfa64d5222a3be4 (diff) | |
mkimage: do not fail if there is no print_header function
Commit 253c60a breaks the exit value of 'mkimage -T rkimage'
and print the following error:
mkimage: Can't print header for Rockchip Boot Image support: Success
It is not a failure to not print headers, so just display the warning message,
and finish the function properly.
Signed-off-by: Guillaume GARDET <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Tom Rini <[email protected]>
Reviewed-by: Philipp Tomsich <[email protected]>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/mkimage.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c index 28ff35e670a..4e561820e77 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -588,9 +588,8 @@ int main(int argc, char **argv) if (tparams->print_header) tparams->print_header (ptr); else { - fprintf (stderr, "%s: Can't print header for %s: %s\n", - params.cmdname, tparams->name, strerror(errno)); - exit (EXIT_FAILURE); + fprintf (stderr, "%s: Can't print header for %s\n", + params.cmdname, tparams->name); } (void) munmap((void *)ptr, sbuf.st_size); |
