[JFFS2] Fix and improve debugging output during scan.

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu May 25 08:59:03 EDT 2006


Commit:     8b9e9fe8c6ee354aa75dc5a33e1575b21aa52084
Parent:     046b8b9808127d63326a33bc6298c90eaee90eeb
Author:     David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Thu May 25 01:53:09 2006 +0100
Commit:     David Woodhouse <dwmw2 at infradead.org>
CommitDate: Thu May 25 01:53:09 2006 +0100

    [JFFS2] Fix and improve debugging output during scan.
    
    Print wasted_size in scanned eraseblocks, print range correctly for
    summary dirent and inode entries.
    
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>

 fs/jffs2/scan.c    |    6 +++---
 fs/jffs2/summary.c |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/fs/jffs2/scan.c b/fs/jffs2/scan.c
index 5bbd4a3..404ba6e 100644
--- a/fs/jffs2/scan.c
+++ b/fs/jffs2/scan.c
@@ -881,9 +881,9 @@ #endif	/* CONFIG_JFFS2_FS_XATTR */
 		}
 	}
 
-	D1(printk(KERN_DEBUG "Block at 0x%08x: free 0x%08x, dirty 0x%08x, unchecked 0x%08x, used 0x%08x\n", jeb->offset,
-		  jeb->free_size, jeb->dirty_size, jeb->unchecked_size, jeb->used_size));
-
+	D1(printk(KERN_DEBUG "Block at 0x%08x: free 0x%08x, dirty 0x%08x, unchecked 0x%08x, used 0x%08x, wasted 0x%08x\n",
+		  jeb->offset,jeb->free_size, jeb->dirty_size, jeb->unchecked_size, jeb->used_size, jeb->wasted_size));
+	
 	/* mark_node_obsolete can add to wasted !! */
 	if (jeb->wasted_size) {
 		jeb->dirty_size += jeb->wasted_size;
diff --git a/fs/jffs2/summary.c b/fs/jffs2/summary.c
index a60bbce..523a8f3 100644
--- a/fs/jffs2/summary.c
+++ b/fs/jffs2/summary.c
@@ -413,7 +413,7 @@ static int jffs2_sum_process_sum_data(st
 
 				dbg_summary("Inode at 0x%08x-0x%08x\n",
 					    jeb->offset + je32_to_cpu(spi->offset),
-					    jeb->offset + je32_to_cpu(spi->offset) + je32_to_cpu(spu->totlen));
+					    jeb->offset + je32_to_cpu(spi->offset) + je32_to_cpu(spi->totlen));
 
 				ic = jffs2_scan_make_ino_cache(c, ino);
 				if (!ic) {
@@ -435,7 +435,7 @@ static int jffs2_sum_process_sum_data(st
 				struct jffs2_sum_dirent_flash *spd;
 				spd = sp;
 
-				dbg_summary("Dirent at 0x%08x\n",
+				dbg_summary("Dirent at 0x%08x-0x%08x\n",
 					    jeb->offset + je32_to_cpu(spd->offset),
 					    jeb->offset + je32_to_cpu(spd->offset) + je32_to_cpu(spd->totlen));
 



More information about the linux-mtd-cvs mailing list