]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
UBI: print reserved_peb when it is too large
authorDeepak Saxena <dsaxena@plexity.net>
Wed, 8 Oct 2008 19:56:24 +0000 (12:56 -0700)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 9 Oct 2008 13:19:04 +0000 (16:19 +0300)
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>
drivers/mtd/ubi/vtbl.c

index 217d0e111b2a4652212f563cb9baf5255f2bbdca..333c8941552fbe3067be1a9a40fd3c0f704386ad 100644 (file)
@@ -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;
                }