diff options
Diffstat (limited to 'drivers/mtd/ubi/vtbl.c')
-rw-r--r-- | drivers/mtd/ubi/vtbl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/ubi/vtbl.c b/drivers/mtd/ubi/vtbl.c index befe6f888d57..f3fbaa9ec7f2 100644 --- a/drivers/mtd/ubi/vtbl.c +++ b/drivers/mtd/ubi/vtbl.c | |||
@@ -225,7 +225,7 @@ static int vtbl_check(const struct ubi_device *ubi, | |||
225 | 225 | ||
226 | n = ubi->leb_size % alignment; | 226 | n = ubi->leb_size % alignment; |
227 | if (data_pad != n) { | 227 | if (data_pad != n) { |
228 | dbg_err("bad data_pad, has to be %d", n); | 228 | ubi_err("bad data_pad, has to be %d", n); |
229 | err = 6; | 229 | err = 6; |
230 | goto bad; | 230 | goto bad; |
231 | } | 231 | } |
@@ -241,7 +241,7 @@ static int vtbl_check(const struct ubi_device *ubi, | |||
241 | } | 241 | } |
242 | 242 | ||
243 | if (reserved_pebs > ubi->good_peb_count) { | 243 | if (reserved_pebs > ubi->good_peb_count) { |
244 | dbg_err("too large reserved_pebs %d, good PEBs %d", | 244 | ubi_err("too large reserved_pebs %d, good PEBs %d", |
245 | reserved_pebs, ubi->good_peb_count); | 245 | reserved_pebs, ubi->good_peb_count); |
246 | err = 9; | 246 | err = 9; |
247 | goto bad; | 247 | goto bad; |
@@ -815,7 +815,7 @@ int ubi_read_volume_table(struct ubi_device *ubi, struct ubi_scan_info *si) | |||
815 | } else { | 815 | } else { |
816 | if (sv->leb_count > UBI_LAYOUT_VOLUME_EBS) { | 816 | if (sv->leb_count > UBI_LAYOUT_VOLUME_EBS) { |
817 | /* This must not happen with proper UBI images */ | 817 | /* This must not happen with proper UBI images */ |
818 | dbg_err("too many LEBs (%d) in layout volume", | 818 | ubi_err("too many LEBs (%d) in layout volume", |
819 | sv->leb_count); | 819 | sv->leb_count); |
820 | return -EINVAL; | 820 | return -EINVAL; |
821 | } | 821 | } |