Skip to content

Commit

Permalink
UBIFS: remove invalid warn msg with tst_recovery enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Mats Karrman <mats.karrman@tritech.se>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
  • Loading branch information
Mats Kärrman authored and Artem Bityutskiy committed Aug 16, 2013
1 parent d4e4ab8 commit c23e9b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fs/ubifs/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c23e9b7

Please sign in to comment.