[UBI] Print reseved_peb when it is too large

Submitted by Deepak Saxena on Oct. 8, 2008, 7:56 p.m.

Details

Message ID 20081008195624.GA20104@trantor.hsd1.or.comcast.net
State Accepted
Headers show

Commit Message

Deepak Saxena Oct. 8, 2008, 7:56 p.m.
[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>

Comments

Artem Bityutskiy Oct. 9, 2008, 11:41 a.m.
On Wed, 2008-10-08 at 12:56 -0700, Deepak Saxena wrote:
> [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>

Pushed to ubi-2.6.git, thank you.

Patch hide | download patch | download mbox

diff --git a/drivers/mtd/ubi/vtbl.c b/drivers/mtd/ubi/vtbl.c
index 217d0e1..5758c9b 100644
--- a/drivers/mtd/ubi/vtbl.c
+++ b/drivers/mtd/ubi/vtbl.c
@@ -244,7 +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",
+			dbg_err("too large reserved_pebs %d, good PEBs %d",
+				reserved_pebs,
 				ubi->good_peb_count);
 			err = 9;
 			goto bad;