Skip to content

Commit

Permalink
[JFFS2] Print correct node offset when complaining about broken data CRC
Browse files Browse the repository at this point in the history
Debugging the hardware problems in OLPC trac #1905 would be a whole lot
easier if the correct node offsets were printed for the offending nodes.

Signed-off-by: David Woodhouse <[email protected]>
  • Loading branch information
dwmw2 committed Aug 2, 2007
1 parent 7b68770 commit b8e3ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/jffs2/readinode.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ static int check_node_data(struct jffs2_sb_info *c, struct jffs2_tmp_dnode_info

if (crc != tn->data_crc) {
JFFS2_NOTICE("wrong data CRC in data node at 0x%08x: read %#08x, calculated %#08x.\n",
ofs, tn->data_crc, crc);
ref_offset(ref), tn->data_crc, crc);
return 1;
}

Expand Down

0 comments on commit b8e3ec3

Please sign in to comment.