summaryrefslogtreecommitdiff
path: root/tools/firmware-utils/src/seama.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/seama.c
parentf457ae99f20bed2f8482ca9f9f1e4e7ac2701d40 (diff)
downloadmtk-20170518-3d1a65adb41db2758827fe81f36d92ab61618ea3.zip
mtk-20170518-3d1a65adb41db2758827fe81f36d92ab61618ea3.tar.gz
mtk-20170518-3d1a65adb41db2758827fe81f36d92ab61618ea3.tar.bz2
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/seama.c')
-rw-r--r--tools/firmware-utils/src/seama.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/firmware-utils/src/seama.c b/tools/firmware-utils/src/seama.c
index 944ed3a..05aee8e 100644
--- a/tools/firmware-utils/src/seama.c
+++ b/tools/firmware-utils/src/seama.c
@@ -235,10 +235,10 @@ static int verify_seama(const char * fname, int msg)
{
printf("SEAMA ==========================================\n");
printf(" magic : %08x\n", ntohl(shdr.magic));
- printf(" meta size : %d bytes\n", msize);
+ printf(" meta size : %zu bytes\n", msize);
for (i=0; i<msize; i+=(strlen((const char *)&buf[i])+1))
printf(" meta data : %s\n", &buf[i]);
- printf(" image size : %d bytes\n", isize);
+ printf(" image size : %zu bytes\n", isize);
}
/* verify checksum */
@@ -473,7 +473,7 @@ static void extract_file(const char * output)
fread(buf, sizeof(char), msize, ifh);
if (match_meta((const char *)buf, msize))
{
- printf("SEAMA: found image @ '%s', image size: %d\n", o_images[i], isize);
+ printf("SEAMA: found image @ '%s', image size: %zu\n", o_images[i], isize);
/* open output file */
ofh = fopen(output, "w");
if (!ofh) printf("SEAMA: unable to open '%s' for writting.\n",output);