summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/scan.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-16 18:39:56 +0300
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-05-20 20:26:00 +0300
commite2986827d5d0759788d00f3759bcd46fc28f96c5 (patch)
treef1272cf940e80a0f3ee3e307341a2df0bbad6dbe /drivers/mtd/ubi/scan.c
parent7bf523ae252d654f1fa85c5e8759f221afe1c593 (diff)
downloadop-kernel-dev-e2986827d5d0759788d00f3759bcd46fc28f96c5.zip
op-kernel-dev-e2986827d5d0759788d00f3759bcd46fc28f96c5.tar.gz
UBI: get rid of dbg_err
This patch removes the 'dbg_err()' macro and we now use 'ubi_err' instead. The idea of 'dbg_err()' was to compile out some error message to make the binary a bit smaller - but I think it was a bad idea. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/ubi/scan.c')
-rw-r--r--drivers/mtd/ubi/scan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mtd/ubi/scan.c b/drivers/mtd/ubi/scan.c
index 17fc6e5..dc7f9db 100644
--- a/drivers/mtd/ubi/scan.c
+++ b/drivers/mtd/ubi/scan.c
@@ -197,7 +197,7 @@ static int validate_vid_hdr(const struct ubi_vid_hdr *vid_hdr,
*/
if (vol_id != sv->vol_id) {
- dbg_err("inconsistent vol_id");
+ ubi_err("inconsistent vol_id");
goto bad;
}
@@ -207,17 +207,17 @@ static int validate_vid_hdr(const struct ubi_vid_hdr *vid_hdr,
sv_vol_type = UBI_VID_DYNAMIC;
if (vol_type != sv_vol_type) {
- dbg_err("inconsistent vol_type");
+ ubi_err("inconsistent vol_type");
goto bad;
}
if (used_ebs != sv->used_ebs) {
- dbg_err("inconsistent used_ebs");
+ ubi_err("inconsistent used_ebs");
goto bad;
}
if (data_pad != sv->data_pad) {
- dbg_err("inconsistent data_pad");
+ ubi_err("inconsistent data_pad");
goto bad;
}
}
@@ -369,7 +369,7 @@ static int compare_lebs(struct ubi_device *ubi, const struct ubi_scan_leb *seb,
if (err == UBI_IO_BITFLIPS)
bitflips = 1;
else {
- dbg_err("VID of PEB %d header is bad, but it "
+ ubi_err("VID of PEB %d header is bad, but it "
"was OK earlier, err %d", pnum, err);
if (err > 0)
err = -EIO;
OpenPOWER on IntegriCloud