Skip to content

Commit

Permalink
UBI: print reserved_peb when it is too large
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Deepak Saxena authored and Artem Bityutskiy committed Oct 9, 2008
1 parent 0e4a008 commit 762a9f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mtd/ubi/vtbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 762a9f2

Please sign in to comment.