[JFFS2] Print correct node offset when complaining about broken data CRC
authorDavid Woodhouse <dwmw2@infradead.org>
Thu, 5 Jul 2007 05:57:26 +0000 (01:57 -0400)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 2 Aug 2007 20:43:46 +0000 (21:43 +0100)
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 <dwmw2@infradead.org>
fs/jffs2/readinode.c

index 170da20b97c781eb3af86d8232575b5a9398e981..b5baa356fed2425317fe5f9616744e122f542948 100644 (file)
@@ -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;
        }