public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] [UBI] Print reseved_peb when it is too large
@ 2008-10-08 19:56 Deepak Saxena
  2008-10-09 11:41 ` Artem Bityutskiy
  0 siblings, 1 reply; 2+ messages in thread
From: Deepak Saxena @ 2008-10-08 19:56 UTC (permalink / raw)
  To: dedekind; +Cc: linux-mtd


[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>


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;


-- 
   _____   __o  Deepak Saxena - Living CarFree and CareFree          (o>
------    -\<,  "When I see an adult on a bicycle, I do not despair  //\
 ----- ( )/ ( )  for the future of the human race." -H.G Wells       V_/_
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] [UBI] Print reseved_peb when it is too large
  2008-10-08 19:56 [PATCH] [UBI] Print reseved_peb when it is too large Deepak Saxena
@ 2008-10-09 11:41 ` Artem Bityutskiy
  0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2008-10-09 11:41 UTC (permalink / raw)
  To: dsaxena; +Cc: linux-mtd

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.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-09 11:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-08 19:56 [PATCH] [UBI] Print reseved_peb when it is too large Deepak Saxena
2008-10-09 11:41 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox