[JFFS2] Honour TEST_TOTLEN macro in debugging code. ref->__totlen is going!
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 23 Apr 2008 00:25:33 +0000 (01:25 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 23 Apr 2008 00:25:33 +0000 (01:25 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/debug.c

index 590bdd6e014757c525108dd03e23c481a83cf9d8..e198468a8c68e71d4650dd15961e02f9c3b69b72 100644 (file)
@@ -400,7 +400,10 @@ __jffs2_dbg_dump_node_refs_nolock(struct jffs2_sb_info *c,
 
        printk(JFFS2_DBG);
        for (ref = jeb->first_node; ; ref = ref_next(ref)) {
-               printk("%#08x(%#x)", ref_offset(ref), ref->__totlen);
+               printk("%#08x", ref_offset(ref));
+#ifdef TEST_TOTLEN
+               printk("(%x)", ref->__totlen);
+#endif
                if (ref_next(ref))
                        printk("->");
                else