Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 762a9f29 authored by Deepak Saxena's avatar Deepak Saxena Committed by Artem Bityutskiy
Browse files

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: default avatarDeepak Saxena <dsaxena@laptop.org>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 0e4a008a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
		}