|
@@ -156,8 +156,12 @@ retry:
|
|
|
/*
|
|
|
* -EUCLEAN is reported if there was a bit-flip which
|
|
|
* was corrected, so this is harmless.
|
|
|
+ *
|
|
|
+ * We do not report about it here unless debugging is
|
|
|
+ * enabled. A corresponding message will be printed
|
|
|
+ * later, when it is has been scrubbed.
|
|
|
*/
|
|
|
- ubi_msg("fixable bit-flip detected at PEB %d", pnum);
|
|
|
+ dbg_msg("fixable bit-flip detected at PEB %d", pnum);
|
|
|
ubi_assert(len == read);
|
|
|
return UBI_IO_BITFLIPS;
|
|
|
}
|
|
@@ -391,6 +395,7 @@ static int torture_peb(struct ubi_device *ubi, int pnum)
|
|
|
{
|
|
|
int err, i, patt_count;
|
|
|
|
|
|
+ ubi_msg("run torture test for PEB %d", pnum);
|
|
|
patt_count = ARRAY_SIZE(patterns);
|
|
|
ubi_assert(patt_count > 0);
|
|
|
|
|
@@ -434,6 +439,7 @@ static int torture_peb(struct ubi_device *ubi, int pnum)
|
|
|
}
|
|
|
|
|
|
err = patt_count;
|
|
|
+ ubi_msg("PEB %d passed torture test, do not mark it a bad", pnum);
|
|
|
|
|
|
out:
|
|
|
mutex_unlock(&ubi->buf_mutex);
|