[JFFS2] Revert Artem's Bunkage in debug messages.

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed May 24 09:24:28 EDT 2006


Commit:     c7c16c8e7604a8974d48562fecf8d9c7e221fced
Parent:     0305c8659ff9cebabf469d5cd0ab8dc384857e10
Author:     David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Wed May 24 14:24:02 2006 +0100
Commit:     David Woodhouse <dwmw2 at infradead.org>
CommitDate: Wed May 24 14:24:02 2006 +0100

    [JFFS2] Revert Artem's Bunkage in debug messages.
    
    Random unthinking 'cleanup' caused debug messages like this:
       Obsoleting node at 0x0006daf4 of len 0x3a4: <7>Dirtying
    
    If messages are continuation of an existing line, they don't need
    to be prefixed with KERN_DEBUG.
    
    THINK. Or you will be replaced by a small shell script.
    
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>

 fs/jffs2/nodemgmt.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/jffs2/nodemgmt.c b/fs/jffs2/nodemgmt.c
index f4649c2..8264eab 100644
--- a/fs/jffs2/nodemgmt.c
+++ b/fs/jffs2/nodemgmt.c
@@ -517,7 +517,7 @@ void jffs2_mark_node_obsolete(struct jff
 
 	// Take care, that wasted size is taken into concern
 	if ((jeb->dirty_size || ISDIRTY(jeb->wasted_size + freed_len)) && jeb != c->nextblock) {
-		D1(printk(KERN_DEBUG "Dirtying\n"));
+		D1(printk("Dirtying\n"));
 		addedsize = freed_len;
 		jeb->dirty_size += freed_len;
 		c->dirty_size += freed_len;
@@ -539,7 +539,7 @@ void jffs2_mark_node_obsolete(struct jff
 			}
 		}
 	} else {
-		D1(printk(KERN_DEBUG "Wasting\n"));
+		D1(printk("Wasting\n"));
 		addedsize = 0;
 		jeb->wasted_size += freed_len;
 		c->wasted_size += freed_len;



More information about the linux-mtd-cvs mailing list