diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-07-22 15:32:51 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-10-14 06:10:20 -0400 |
commit | 8d2d4011f1398d984819c65043abb559c451a3c8 (patch) | |
tree | a563add73b96dd245acffbe8b3e3288441fce7f8 /drivers/mtd/ubi/io.c | |
parent | 8bc22961966b845aa5f965be30771902146c2fcc (diff) |
UBI: add more prints
I hit those situations and found out lack of print messages. Add more prints
when erase problems occur.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/io.c')
-rw-r--r-- | drivers/mtd/ubi/io.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/io.c b/drivers/mtd/ubi/io.c index b0d8f4cede97..d42ec687b014 100644 --- a/drivers/mtd/ubi/io.c +++ b/drivers/mtd/ubi/io.c | |||
@@ -430,13 +430,16 @@ static int torture_peb(const struct ubi_device *ubi, int pnum) | |||
430 | err = patt_count; | 430 | err = patt_count; |
431 | 431 | ||
432 | out: | 432 | out: |
433 | if (err == UBI_IO_BITFLIPS || err == -EBADMSG) | 433 | if (err == UBI_IO_BITFLIPS || err == -EBADMSG) { |
434 | /* | 434 | /* |
435 | * If a bit-flip or data integrity error was detected, the test | 435 | * If a bit-flip or data integrity error was detected, the test |
436 | * has not passed because it happened on a freshly erased | 436 | * has not passed because it happened on a freshly erased |
437 | * physical eraseblock which means something is wrong with it. | 437 | * physical eraseblock which means something is wrong with it. |
438 | */ | 438 | */ |
439 | ubi_err("read problems on freshly erased PEB %d, must be bad", | ||
440 | pnum); | ||
439 | err = -EIO; | 441 | err = -EIO; |
442 | } | ||
440 | vfree(buf); | 443 | vfree(buf); |
441 | return err; | 444 | return err; |
442 | } | 445 | } |