Skip to content

Commit c23e9b7

Browse files
Mats Kärrmandedekind
authored andcommitted
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>
1 parent d4e4ab8 commit c23e9b7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

fs/ubifs/debug.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2587,10 +2587,11 @@ int dbg_leb_write(struct ubifs_info *c, int lnum, const void *buf,
25872587
return -EROFS;
25882588

25892589
failing = power_cut_emulated(c, lnum, 1);
2590-
if (failing)
2590+
if (failing) {
25912591
len = corrupt_data(c, buf, len);
2592-
ubifs_warn("actually write %d bytes to LEB %d:%d (the buffer was corrupted)",
2593-
len, lnum, offs);
2592+
ubifs_warn("actually write %d bytes to LEB %d:%d (the buffer was corrupted)",
2593+
len, lnum, offs);
2594+
}
25942595
err = ubi_leb_write(c->ubi, lnum, buf, offs, len);
25952596
if (err)
25962597
return err;

0 commit comments

Comments
 (0)