From e36423e8c2140a0a5b679f77be907fe9d4501d4f Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Sat, 17 Dec 2016 01:52:50 +0100 Subject: all: Fix printing fsblkcnt_t and off_t types --- src/local.c | 2 +- src/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/local.c b/src/local.c index 3b2b1cd..628c49e 100644 --- a/src/local.c +++ b/src/local.c @@ -223,7 +223,7 @@ static int local_nanddump(const char * file, int mtd, int offset, int length) { free(path); if ( ret == 0 && buf.f_bsize * buf.f_bfree < (long unsigned int)length ) { - ERROR("Not enough free space (have: %lu, need: %d)", buf.f_bsize * buf.f_bfree, length); + ERROR("Not enough free space (have: %ju, need: %d)", (intmax_t)(buf.f_bsize * buf.f_bfree), length); return 1; } diff --git a/src/main.c b/src/main.c index 3c24820..40f367a 100644 --- a/src/main.c +++ b/src/main.c @@ -222,7 +222,7 @@ static void parse_image_arg(char * arg, struct image_list ** image_first) { exit(1); } if ( read(fd, layout, len) != len ) { - ERROR_INFO("Cannot read %lu bytes from layout file %s", len, layout_file); + ERROR_INFO("Cannot read %ju bytes from layout file %s", (intmax_t)len, layout_file); exit(1); } layout[len] = 0; -- cgit v1.2.3