提交 c23e9b75 编写于 作者: M Mats Kärrman 提交者: Artem Bityutskiy

UBIFS: remove invalid warn msg with tst_recovery enabled

Signed-off-by: NMats Karrman <mats.karrman@tritech.se>
Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
上级 d4e4ab86
......@@ -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);
}
err = ubi_leb_write(c->ubi, lnum, buf, offs, len);
if (err)
return err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册