Skip to content

Commit

Permalink
[JFFS2] Honour TEST_TOTLEN macro in debugging code. ref->__totlen is …
Browse files Browse the repository at this point in the history
…going!

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed Apr 23, 2008
1 parent 85a62db commit 27e6b8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fs/jffs2/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27e6b8e

Please sign in to comment.