[JFFS2] Honour TEST_TOTLEN macro in debugging code. ref->__totlen is going!
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Apr 22 20:59:01 EDT 2008
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=27e6b8e388fffb332476ddab00bbe05cd5da5f32
Commit: 27e6b8e388fffb332476ddab00bbe05cd5da5f32
Parent: 85a62db6245a82f07a31b387915ee2180b9ea11a
Author: David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Wed Apr 23 01:25:33 2008 +0100
Committer: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Wed Apr 23 01:25:33 2008 +0100
[JFFS2] Honour TEST_TOTLEN macro in debugging code. ref->__totlen is going!
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
fs/jffs2/debug.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/fs/jffs2/debug.c b/fs/jffs2/debug.c
index 590bdd6..e198468 100644
--- a/fs/jffs2/debug.c
+++ b/fs/jffs2/debug.c
@@ -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
More information about the linux-mtd-cvs
mailing list