diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2015-10-11 19:00:41 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2015-10-11 19:00:41 +0000 |
commit | 3d1a65adb41db2758827fe81f36d92ab61618ea3 (patch) | |
tree | 6915980ec09edb4801a9e33e7bacd80cd160fe27 /tools/firmware-utils/src/mkzynfw.c | |
parent | f457ae99f20bed2f8482ca9f9f1e4e7ac2701d40 (diff) | |
download | upstream-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/mkzynfw.c')
-rw-r--r-- | tools/firmware-utils/src/mkzynfw.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/firmware-utils/src/mkzynfw.c b/tools/firmware-utils/src/mkzynfw.c index 36c176f432..ccbabfe7f2 100644 --- a/tools/firmware-utils/src/mkzynfw.c +++ b/tools/firmware-utils/src/mkzynfw.c @@ -27,6 +27,7 @@ #if defined(__CYGWIN__) # include <byteswap.h> #endif +#include <inttypes.h> #include "zynos.h" @@ -687,7 +688,7 @@ write_out_file(FILE *outfile, char *name, size_t len, struct csum_state *css) FILE *f; int res; - DBG(2, "writing out file, name=%s, len=%d", + DBG(2, "writing out file, name=%s, len=%zu", name, len); errno = 0; @@ -988,7 +989,7 @@ calc_block_offsets(int type, uint32_t *offset) uint32_t avail; int i, res; - DBG(1,"calculating block offsets, starting with %lu", + DBG(1,"calculating block offsets, starting with %" PRIu32, *offset); res = 0; |