diff options
author | Mats Kärrman <Mats.Karrman@tritech.se> | 2013-08-14 10:06:24 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-08-16 09:42:08 -0400 |
commit | c23e9b75ccd0edba81a506c7d97e0af626489256 (patch) | |
tree | 01bed90e24e56ba652dd755cfc3904f5b6c34846 /fs/ubifs/debug.c | |
parent | d4e4ab86bcba5a72779c43dc1459f71fea3d89c8 (diff) |
UBIFS: remove invalid warn msg with tst_recovery enabled
Signed-off-by: Mats Karrman <mats.karrman@tritech.se>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'fs/ubifs/debug.c')
-rw-r--r-- | fs/ubifs/debug.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c index 7f60e900edff..6e025e02ffde 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, | |||
2587 | return -EROFS; | 2587 | return -EROFS; |
2588 | 2588 | ||
2589 | failing = power_cut_emulated(c, lnum, 1); | 2589 | failing = power_cut_emulated(c, lnum, 1); |
2590 | if (failing) | 2590 | if (failing) { |
2591 | len = corrupt_data(c, buf, len); | 2591 | len = corrupt_data(c, buf, len); |
2592 | ubifs_warn("actually write %d bytes to LEB %d:%d (the buffer was corrupted)", | 2592 | ubifs_warn("actually write %d bytes to LEB %d:%d (the buffer was corrupted)", |
2593 | len, lnum, offs); | 2593 | len, lnum, offs); |
2594 | } | ||
2594 | err = ubi_leb_write(c->ubi, lnum, buf, offs, len); | 2595 | err = ubi_leb_write(c->ubi, lnum, buf, offs, len); |
2595 | if (err) | 2596 | if (err) |
2596 | return err; | 2597 | return err; |