[PATCH] [JFFS2] fix compile warnings
Josh Boyer
jwboyer at linux.vnet.ibm.com
Fri Feb 16 11:05:44 EST 2007
Fix a handful of warnings when compiling for 64 bit
fs/jffs2/wbuf.c: In function 'jffs2_check_oob_empty':
fs/jffs2/wbuf.c:993: warning: format '%d' expects type 'int', but
argument 3 has type 'size_t'
Signed-off-by: Josh Boyer <jwboyer at linux.vnet.ibm.com>
diff --git a/fs/jffs2/wbuf.c b/fs/jffs2/wbuf.c
index 58cb77b..922bfc9 100644
--- a/fs/jffs2/wbuf.c
+++ b/fs/jffs2/wbuf.c
@@ -988,8 +988,8 @@ int jffs2_check_oob_empty(struct jffs2_sb_info *c,
ret = c->mtd->read_oob(c->mtd, jeb->offset, &ops);
if (ret || ops.oobretlen != ops.ooblen) {
- printk(KERN_ERR "cannot read OOB for EB at %08x, requested %d "
- "bytes, read %d bytes, error %d\n", jeb->offset,
+ printk(KERN_ERR "cannot read OOB for EB at %08x, requested %zd "
+ "bytes, read %zd bytes, error %d\n", jeb->offset,
ops.ooblen, ops.oobretlen, ret);
if (!ret)
ret = -EIO;
@@ -1031,8 +1031,8 @@ int jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c,
ret = c->mtd->read_oob(c->mtd, jeb->offset, &ops);
if (ret || ops.oobretlen != ops.ooblen) {
- printk(KERN_ERR "cannot read OOB for EB at %08x, requested %d "
- "bytes, read %d bytes, error %d\n", jeb->offset,
+ printk(KERN_ERR "cannot read OOB for EB at %08x, requested %zd "
+ "bytes, read %zd bytes, error %d\n", jeb->offset,
ops.ooblen, ops.oobretlen, ret);
if (!ret)
ret = -EIO;
@@ -1057,8 +1057,8 @@ int jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c,
ret = c->mtd->write_oob(c->mtd, jeb->offset, &ops);
if (ret || ops.oobretlen != ops.ooblen) {
- printk(KERN_ERR "cannot write OOB for EB at %08x, requested %d "
- "bytes, read %d bytes, error %d\n", jeb->offset,
+ printk(KERN_ERR "cannot write OOB for EB at %08x, requested %zd "
+ "bytes, read %zd bytes, error %d\n", jeb->offset,
ops.ooblen, ops.oobretlen, ret);
if (!ret)
ret = -EIO;
More information about the linux-mtd
mailing list