summaryrefslogtreecommitdiffstats
path: root/src/local.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2016-12-17 01:52:50 +0100
committerPali Rohár <pali.rohar@gmail.com>2016-12-17 01:52:50 +0100
commite36423e8c2140a0a5b679f77be907fe9d4501d4f (patch)
tree17a53e37d22ecf3f2e7036d7fdbeb5ab7c9d3984 /src/local.c
parent430930537cf483847419bcfacce00ff3f75b8db8 (diff)
download0xFFFF-e36423e8c2140a0a5b679f77be907fe9d4501d4f.tar.bz2
all: Fix printing fsblkcnt_t and off_t types
Diffstat (limited to 'src/local.c')
-rw-r--r--src/local.c2
1 files changed, 1 insertions, 1 deletions
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;
}