Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8d2d4011f1398d984819c65043abb559c451a3c8
Commit:     8d2d4011f1398d984819c65043abb559c451a3c8
Parent:     8bc22961966b845aa5f965be30771902146c2fcc
Author:     Artem Bityutskiy <[EMAIL PROTECTED]>
AuthorDate: Sun Jul 22 22:32:51 2007 +0300
Committer:  Artem Bityutskiy <[EMAIL PROTECTED]>
CommitDate: Sun Oct 14 13:10:20 2007 +0300

    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 <[EMAIL PROTECTED]>
---
 drivers/mtd/ubi/io.c |    5 ++++-
 drivers/mtd/ubi/wl.c |    1 +
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/ubi/io.c b/drivers/mtd/ubi/io.c
index b0d8f4c..d42ec68 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)
        err = patt_count;
 
 out:
-       if (err == UBI_IO_BITFLIPS || err == -EBADMSG)
+       if (err == UBI_IO_BITFLIPS || err == -EBADMSG) {
                /*
                 * If a bit-flip or data integrity error was detected, the test
                 * has not passed because it happened on a freshly erased
                 * physical eraseblock which means something is wrong with it.
                 */
+               ubi_err("read problems on freshly erased PEB %d, must be bad",
+                       pnum);
                err = -EIO;
+       }
        vfree(buf);
        return err;
 }
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c
index a5a9b8d..12b25e5 100644
--- a/drivers/mtd/ubi/wl.c
+++ b/drivers/mtd/ubi/wl.c
@@ -1093,6 +1093,7 @@ static int erase_worker(struct ubi_device *ubi, struct 
ubi_work *wl_wrk,
                return err;
        }
 
+       ubi_err("failed to erase PEB %d, error %d", pnum, err);
        kfree(wl_wrk);
        kmem_cache_free(wl_entries_slab, e);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to