Patchwork ubifs: remove invalid warn msg with tst_recovery enabled

login
register
mail settings
Submitter Mats Kärrman
Date Aug. 14, 2013, 2:06 p.m.
Message ID <ED3E0BCACD909541BA94A34C4A164D4C4FCDB069@post.tritech.se>
Download mbox | patch
Permalink /patch/267127/
State Accepted
Commit c23e9b75ccd0edba81a506c7d97e0af626489256
Headers show

Comments

Mats Kärrman - Aug. 14, 2013, 2:06 p.m.
Signed-off-by: Mats Karrman <mats.karrman@tritech.se>
Artem Bityutskiy - Aug. 16, 2013, 1:48 p.m.
On Wed, 2013-08-14 at 14:06 +0000, Mats Kärrman wrote:
> Signed-off-by: Mats Karrman <mats.karrman@tritech.se>
> 
> diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c

Pushed to linux-ubifs.git, thanks!

Patch

diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index 7f60e90..6e025e0 100644
--- a/fs/ubifs/debug.c
+++ b/fs/ubifs/debug.c
@@ -2587,10 +2587,11 @@  int dbg_leb_write(struct ubifs_info *c, int lnum, const void *buf,
 		return -EROFS;
 
 	failing = power_cut_emulated(c, lnum, 1);
-	if (failing)
+	if (failing) {
 		len = corrupt_data(c, buf, len);
-	ubifs_warn("actually write %d bytes to LEB %d:%d (the buffer was corrupted)",
-		   len, lnum, offs);
+		ubifs_warn("actually write %d bytes to LEB %d:%d (the buffer was corrupted)",
+			   len, lnum, offs);
+	}
 	err = ubi_leb_write(c->ubi, lnum, buf, offs, len);
 	if (err)
 		return err;