Merge branch 'for-linus/2640/i2c' of git://git.fluff.org/bjdooks/linux
[pandora-kernel.git] / fs / ubifs / lprops.c
index 77c541b..667884f 100644 (file)
@@ -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;
        }