X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tools%2Fimagetool.c;h=08d191d9f894a6b86afd867de33ec4026c2286f2;hb=efa7ed7236ee5bfab871f35ce70f3e3e1d39b4f6;hp=351211cd5387b9e727ce22501428d2a6af19cc7b;hpb=9f0f432c0aea1e70959a0c06938459d3175a36b0;p=u-boot diff --git a/tools/imagetool.c b/tools/imagetool.c index 351211cd53..08d191d9f8 100644 --- a/tools/imagetool.c +++ b/tools/imagetool.c @@ -51,7 +51,8 @@ int imagetool_verify_print_header( * successful */ if ((*curr)->print_header) { - (*curr)->print_header(ptr); + if (!params->quiet) + (*curr)->print_header(ptr); } else { fprintf(stderr, "%s: print_header undefined for %s\n", @@ -107,6 +108,7 @@ int imagetool_get_filesize(struct image_tool_params *params, const char *fname) if (fstat(fd, &sbuf) < 0) { fprintf(stderr, "%s: Can't stat %s: %s\n", params->cmdname, fname, strerror(errno)); + close(fd); return -1; } close(fd);