summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/vtbl.c
diff options
context:
space:
mode:
authorDeepak Saxena2008-10-08 21:56:24 +0200
committerArtem Bityutskiy2008-10-09 15:19:04 +0200
commit762a9f291bfdf9e4d5c2b80d730d79055c8d8c99 (patch)
tree1f0c9b238cfacf8964a1f376c162953e2e38d4bd /drivers/mtd/ubi/vtbl.c
parentUBI: fix IS_ERR test (diff)
downloadkernel-qcow2-linux-762a9f291bfdf9e4d5c2b80d730d79055c8d8c99.tar.gz
kernel-qcow2-linux-762a9f291bfdf9e4d5c2b80d730d79055c8d8c99.tar.xz
kernel-qcow2-linux-762a9f291bfdf9e4d5c2b80d730d79055c8d8c99.zip
UBI: print reserved_peb when it is too large
This patch makes debugging a missconfigured UBI a bit easier by providing the needed information in the boot log. Signed-off-by: Deepak Saxena <dsaxena@laptop.org> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/vtbl.c')
-rw-r--r--drivers/mtd/ubi/vtbl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/vtbl.c b/drivers/mtd/ubi/vtbl.c
index 217d0e111b2a..333c8941552f 100644
--- a/drivers/mtd/ubi/vtbl.c
+++ b/drivers/mtd/ubi/vtbl.c
@@ -244,8 +244,8 @@ static int vtbl_check(const struct ubi_device *ubi,
}
if (reserved_pebs > ubi->good_peb_count) {
- dbg_err("too large reserved_pebs, good PEBs %d",
- ubi->good_peb_count);
+ dbg_err("too large reserved_pebs %d, good PEBs %d",
+ reserved_pebs, ubi->good_peb_count);
err = 9;
goto bad;
}