From 7c53b2f9ce77ebe6474f5e38889aaece64bc75f3 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Wed, 25 Apr 2012 09:15:38 +0300 Subject: [PATCH] --- yaml --- r: 305150 b: refs/heads/master c: f01e2d1654dc65792674b3fe5403dbfcce43f9d2 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/mtd/ubi/io.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index e5e4d4489e52..d9e35ec4e9f1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a904e3f1deb21b986b7789a830fa8f132ff3d406 +refs/heads/master: f01e2d1654dc65792674b3fe5403dbfcce43f9d2 diff --git a/trunk/drivers/mtd/ubi/io.c b/trunk/drivers/mtd/ubi/io.c index a3225c212feb..19ee1a821557 100644 --- a/trunk/drivers/mtd/ubi/io.c +++ b/trunk/drivers/mtd/ubi/io.c @@ -189,9 +189,9 @@ int ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset, } if (retries++ < UBI_IO_RETRIES) { - dbg_io("error %d%s while reading %d bytes from PEB " - "%d:%d, read only %zd bytes, retry", - err, errstr, len, pnum, offset, read); + ubi_warn("error %d%s while reading %d bytes from PEB " + "%d:%d, read only %zd bytes, retry", + err, errstr, len, pnum, offset, read); yield(); goto retry; } @@ -364,8 +364,8 @@ static int do_sync_erase(struct ubi_device *ubi, int pnum) err = mtd_erase(ubi->mtd, &ei); if (err) { if (retries++ < UBI_IO_RETRIES) { - dbg_io("error %d while erasing PEB %d, retry", - err, pnum); + ubi_warn("error %d while erasing PEB %d, retry", + err, pnum); yield(); goto retry; } @@ -383,7 +383,7 @@ static int do_sync_erase(struct ubi_device *ubi, int pnum) if (ei.state == MTD_ERASE_FAILED) { if (retries++ < UBI_IO_RETRIES) { - dbg_io("error while erasing PEB %d, retry", pnum); + ubi_warn("error while erasing PEB %d, retry", pnum); yield(); goto retry; }