summaryrefslogtreecommitdiff
path: root/ubi-utils/src/nand2bin.c
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/src/nand2bin.c')
-rw-r--r--ubi-utils/src/nand2bin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubi-utils/src/nand2bin.c b/ubi-utils/src/nand2bin.c
index 636ee6f..b8e4ea3 100644
--- a/ubi-utils/src/nand2bin.c
+++ b/ubi-utils/src/nand2bin.c
@@ -203,7 +203,7 @@ process_page(uint8_t* buf, uint8_t *oobbuf, size_t pagesize)
case 2048: oobsize = 64; eccpoi = 64 / 2; break;
case 512: oobsize = 16; eccpoi = 16 / 2; break;
default:
- fprintf(stderr, "Unsupported page size: %d\n", pagesize);
+ fprintf(stderr, "Unsupported page size: %zd\n", pagesize);
return -EINVAL;
}
memset(oobbuf, 0xff, oobsize);