aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jffs2
diff options
context:
space:
mode:
Diffstat (limited to 'fs/jffs2')
-rw-r--r--fs/jffs2/wbuf.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/jffs2/wbuf.c b/fs/jffs2/wbuf.c
index 58cb77baed8e..de718e3a1692 100644
--- a/fs/jffs2/wbuf.c
+++ b/fs/jffs2/wbuf.c
@@ -988,9 +988,9 @@ int jffs2_check_oob_empty(struct jffs2_sb_info *c,
988 988
989 ret = c->mtd->read_oob(c->mtd, jeb->offset, &ops); 989 ret = c->mtd->read_oob(c->mtd, jeb->offset, &ops);
990 if (ret || ops.oobretlen != ops.ooblen) { 990 if (ret || ops.oobretlen != ops.ooblen) {
991 printk(KERN_ERR "cannot read OOB for EB at %08x, requested %d " 991 printk(KERN_ERR "cannot read OOB for EB at %08x, requested %zd"
992 "bytes, read %d bytes, error %d\n", jeb->offset, 992 " bytes, read %zd bytes, error %d\n",
993 ops.ooblen, ops.oobretlen, ret); 993 jeb->offset, ops.ooblen, ops.oobretlen, ret);
994 if (!ret) 994 if (!ret)
995 ret = -EIO; 995 ret = -EIO;
996 return ret; 996 return ret;
@@ -1031,9 +1031,9 @@ int jffs2_check_nand_cleanmarker(struct jffs2_sb_info *c,
1031 1031
1032 ret = c->mtd->read_oob(c->mtd, jeb->offset, &ops); 1032 ret = c->mtd->read_oob(c->mtd, jeb->offset, &ops);
1033 if (ret || ops.oobretlen != ops.ooblen) { 1033 if (ret || ops.oobretlen != ops.ooblen) {
1034 printk(KERN_ERR "cannot read OOB for EB at %08x, requested %d " 1034 printk(KERN_ERR "cannot read OOB for EB at %08x, requested %zd"
1035 "bytes, read %d bytes, error %d\n", jeb->offset, 1035 " bytes, read %zd bytes, error %d\n",
1036 ops.ooblen, ops.oobretlen, ret); 1036 jeb->offset, ops.ooblen, ops.oobretlen, ret);
1037 if (!ret) 1037 if (!ret)
1038 ret = -EIO; 1038 ret = -EIO;
1039 return ret; 1039 return ret;
@@ -1057,9 +1057,9 @@ int jffs2_write_nand_cleanmarker(struct jffs2_sb_info *c,
1057 1057
1058 ret = c->mtd->write_oob(c->mtd, jeb->offset, &ops); 1058 ret = c->mtd->write_oob(c->mtd, jeb->offset, &ops);
1059 if (ret || ops.oobretlen != ops.ooblen) { 1059 if (ret || ops.oobretlen != ops.ooblen) {
1060 printk(KERN_ERR "cannot write OOB for EB at %08x, requested %d " 1060 printk(KERN_ERR "cannot write OOB for EB at %08x, requested %zd"
1061 "bytes, read %d bytes, error %d\n", jeb->offset, 1061 " bytes, read %zd bytes, error %d\n",
1062 ops.ooblen, ops.oobretlen, ret); 1062 jeb->offset, ops.ooblen, ops.oobretlen, ret);
1063 if (!ret) 1063 if (!ret)
1064 ret = -EIO; 1064 ret = -EIO;
1065 return ret; 1065 return ret;