all: Fix printing fsblkcnt_t and off_t types

This commit is contained in:
Pali Rohár committed 2016-12-17 01:52:50 +01:00
1 parent 430930537c
commit e36423e8c2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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;
}