UBI: print reserved_peb when it is too large
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sat Oct 18 07:59:02 EDT 2008
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=762a9f291bfdf9e4d5c2b80d730d79055c8d8c99
Commit: 762a9f291bfdf9e4d5c2b80d730d79055c8d8c99
Parent: 0e4a008a4f389b468cfe8b58c7d77882a6e25695
Author: Deepak Saxena <dsaxena at plexity.net>
AuthorDate: Wed Oct 8 12:56:24 2008 -0700
Committer: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
CommitDate: Thu Oct 9 16:19:04 2008 +0300
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 at laptop.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
---
drivers/mtd/ubi/vtbl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/ubi/vtbl.c b/drivers/mtd/ubi/vtbl.c
index 217d0e1..333c894 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;
}
More information about the linux-mtd-cvs
mailing list