瀏覽代碼

UBIFS: dump more in the lprops debugging check

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Artem Bityutskiy 14 年之前
父節點
當前提交
12346037a7
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      fs/ubifs/lprops.c

+ 4 - 0
fs/ubifs/lprops.c

@@ -1108,6 +1108,10 @@ static int scan_check_cb(struct ubifs_info *c,
 	sleb = ubifs_scan(c, lnum, 0, buf, 0);
 	if (IS_ERR(sleb)) {
 		ret = PTR_ERR(sleb);
+		if (ret == -EUCLEAN) {
+			dbg_dump_lprops(c);
+			dbg_dump_budg(c, &c->bi);
+		}
 		goto out;
 	}