aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi')
-rw-r--r--drivers/mtd/ubi/io.c4
-rw-r--r--drivers/mtd/ubi/scan.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/mtd/ubi/io.c b/drivers/mtd/ubi/io.c
index ffb230339558..332f992f13d9 100644
--- a/drivers/mtd/ubi/io.c
+++ b/drivers/mtd/ubi/io.c
@@ -150,7 +150,7 @@ int ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset,
150retry: 150retry:
151 err = ubi->mtd->read(ubi->mtd, addr, len, &read, buf); 151 err = ubi->mtd->read(ubi->mtd, addr, len, &read, buf);
152 if (err) { 152 if (err) {
153 const char errstr = (err == -EBADMSG) ? "ECC error" : ""; 153 const char *errstr = (err == -EBADMSG) ? " (ECC error)" : "";
154 154
155 if (err == -EUCLEAN) { 155 if (err == -EUCLEAN) {
156 /* 156 /*
@@ -174,7 +174,7 @@ retry:
174 goto retry; 174 goto retry;
175 } 175 }
176 176
177 ubi_err("error %d while reading %d bytes from PEB %d:%d, " 177 ubi_err("error %d%s while reading %d bytes from PEB %d:%d, "
178 "read %zd bytes", err, errstr, len, pnum, offset, read); 178 "read %zd bytes", err, errstr, len, pnum, offset, read);
179 ubi_dbg_dump_stack(); 179 ubi_dbg_dump_stack();
180 180
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c
index de7b2f1c4113..37855e55651f 100644
--- a/drivers/mtd/ubi/scan.c
+++ b/drivers/mtd/ubi/scan.c
@@ -901,8 +901,7 @@ adjust_mean_ec:
901 * MTD device. Returns zero if we should proceed with attaching the MTD device, 901 * MTD device. Returns zero if we should proceed with attaching the MTD device,
902 * and %-EINVAL if we should not. 902 * and %-EINVAL if we should not.
903 */ 903 */
904static int check_what_we_have(const struct ubi_device *ubi, 904static int check_what_we_have(struct ubi_device *ubi, struct ubi_scan_info *si)
905 struct ubi_scan_info *si)
906{ 905{
907 struct ubi_scan_leb *seb; 906 struct ubi_scan_leb *seb;
908 int max_corr; 907 int max_corr;