aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src/mkcasfw.c
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2015-10-11 19:00:41 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2015-10-11 19:00:41 +0000
commit3d1a65adb41db2758827fe81f36d92ab61618ea3 (patch)
tree6915980ec09edb4801a9e33e7bacd80cd160fe27 /tools/firmware-utils/src/mkcasfw.c
parentf457ae99f20bed2f8482ca9f9f1e4e7ac2701d40 (diff)
downloadupstream-3d1a65adb41db2758827fe81f36d92ab61618ea3.tar.gz
upstream-3d1a65adb41db2758827fe81f36d92ab61618ea3.tar.bz2
upstream-3d1a65adb41db2758827fe81f36d92ab61618ea3.zip
tools: firmware-utils: fix compiler warnings
This just fixes a lot of compiler warnings. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 47181
Diffstat (limited to 'tools/firmware-utils/src/mkcasfw.c')
-rw-r--r--tools/firmware-utils/src/mkcasfw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/firmware-utils/src/mkcasfw.c b/tools/firmware-utils/src/mkcasfw.c
index 626e77d4c4..5655bf1894 100644
--- a/tools/firmware-utils/src/mkcasfw.c
+++ b/tools/firmware-utils/src/mkcasfw.c
@@ -258,7 +258,7 @@ static struct board_info boards[] = {
#define ERRS(fmt, ...) do { \
int save = errno; \
fflush(0); \
- fprintf(stderr, "[%s] *** error: " fmt "\n", \
+ fprintf(stderr, "[%s] *** error: " fmt ": %s\n", \
progname, ## __VA_ARGS__, strerror(save)); \
} while (0)
@@ -708,7 +708,7 @@ image_writeout(FILE *outfile, struct image_desc *desc)
/* write padding data if neccesary */
padlen = desc->out_size - desc->file_size;
- DBG(1,"padding desc, length=%d", padlen);
+ DBG(1,"padding desc, length=%zu", padlen);
res = write_out_padding(outfile, padlen, desc->padc, &css);
desc->csum = csum_get(&css);
@@ -985,11 +985,11 @@ main(int argc, char *argv[])
res = ERR_FATAL;
if (keep_invalid_images == 0) {
- WARN("generation of invalid images disabled", ofname);
+ WARN("generation of invalid images \"%s\" disabled", ofname);
goto out;
}
- WARN("generating invalid image", ofname);
+ WARN("generating invalid image: \"%s\"", ofname);
}
outfile = fopen(ofname, "w");