Skip to content

Commit 194a61b

Browse files
Andrew MortonLinus Torvalds
authored andcommitted
[PATCH] jffs2 warning fixes
fs/jffs2/nodelist.c: In function `check_node_data': fs/jffs2/nodelist.c:441: warning: unsigned int format, different type arg (arg 4) fs/jffs2/nodelist.c:464: warning: int format, different type arg (arg 5) Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent d3779e7 commit 194a61b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fs/jffs2/nodelist.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,8 @@ static int check_node_data(struct jffs2_sb_info *c, struct jffs2_tmp_dnode_info
438438
if (c->mtd->point) {
439439
err = c->mtd->point(c->mtd, ofs, len, &retlen, &buffer);
440440
if (!err && retlen < tn->csize) {
441-
JFFS2_WARNING("MTD point returned len too short: %u instead of %u.\n", retlen, tn->csize);
441+
JFFS2_WARNING("MTD point returned len too short: %zu "
442+
"instead of %u.\n", retlen, tn->csize);
442443
c->mtd->unpoint(c->mtd, buffer, ofs, len);
443444
} else if (err)
444445
JFFS2_WARNING("MTD point failed: error code %d.\n", err);
@@ -461,7 +462,8 @@ static int check_node_data(struct jffs2_sb_info *c, struct jffs2_tmp_dnode_info
461462
}
462463

463464
if (retlen != len) {
464-
JFFS2_ERROR("short read at %#08x: %d instead of %d.\n", ofs, retlen, len);
465+
JFFS2_ERROR("short read at %#08x: %zd instead of %d.\n",
466+
ofs, retlen, len);
465467
err = -EIO;
466468
goto free_out;
467469
}

0 commit comments

Comments
 (0)