UBIFS: remove invalid warn msg with tst_recovery enabled
authorMats Kärrman <Mats.Karrman@tritech.se>
Wed, 14 Aug 2013 14:06:24 +0000 (14:06 +0000)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 16 Aug 2013 13:42:08 +0000 (16:42 +0300)
Signed-off-by: Mats Karrman <mats.karrman@tritech.se>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
fs/ubifs/debug.c

index 7f60e900edff6ff758e84ddf95f0da693570832e..6e025e02ffde80c924bec1b90b4fe62b7d163121 100644 (file)
@@ -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;