summaryrefslogtreecommitdiff
path: root/ubi-utils/src/nand2bin.c
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@gmail.com>2007-02-12 20:41:17 -0600
committerJosh Boyer <jwboyer@gmail.com>2007-02-12 20:41:17 -0600
commit9fe86e65fb6bd77a02955d07d6f336ace4984e2d (patch)
treec0eaa1ed72b8e39bcefe419c481618eb8b5d5b1f /ubi-utils/src/nand2bin.c
parent5327be2927984d4ba365c76a5f4b22839f6e680b (diff)
Fix several issues when compiling for 64bit systems
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
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);