From: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Date: Thu, 8 Mar 2007 08:35:10 +0000 (+0200)
Subject: [JFFS2] print a message when marking bad block
X-Git-Tag: firefly_0821_release~30713^2
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0feba829ee82a6e43baabe3f0bdf91bd937a67a1;p=firefly-linux-kernel-4.4.55.git

[JFFS2] print a message when marking bad block

New bad eraseblock is an event which is important enough to be printed
about.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
---

diff --git a/fs/jffs2/wbuf.c b/fs/jffs2/wbuf.c
index 23028b384418..4fac6dd53954 100644
--- a/fs/jffs2/wbuf.c
+++ b/fs/jffs2/wbuf.c
@@ -1090,7 +1090,7 @@ int jffs2_write_nand_badblock(struct jffs2_sb_info *c, struct jffs2_eraseblock *
 	if (!c->mtd->block_markbad)
 		return 1; // What else can we do?
 
-	D1(printk(KERN_WARNING "jffs2_write_nand_badblock(): Marking bad block at %08x\n", bad_offset));
+	printk(KERN_WARNING "JFFS2: marking eraseblock at %08x\n as bad", bad_offset);
 	ret = c->mtd->block_markbad(c->mtd, bad_offset);
 
 	if (ret) {