From 1633cc075c780828f667a752c74a1d571a6f041e Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Sun, 26 Jul 2009 15:51:11 +0300 Subject: ubiformat: make badblocks output less confusing When ubiformat prints something like ubiformat: bad eraseblocks: 1400 it looks like there are 1400 bad eraseblock, although there is only one with number 1400. Fix this but turning the print into ubiformat: 1 bad eraseblock found, numbers: 1400 Signed-off-by: Artem Bityutskiy --- ubi-utils/src/ubiformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubi-utils/src/ubiformat.c b/ubi-utils/src/ubiformat.c index 3807102..6ffb090 100644 --- a/ubi-utils/src/ubiformat.c +++ b/ubi-utils/src/ubiformat.c @@ -269,7 +269,7 @@ static void print_bad_eraseblocks(const struct mtd_dev_info *mtd, if (si->bad_cnt == 0) return; - normsg_cont("bad eraseblocks: "); + normsg_cont("%d bad eraseblocks found, numbers: ", si->bad_cnt); for (eb = 0; eb < mtd->eb_cnt; eb++) { if (si->ec[eb] != EB_BAD) continue; -- cgit v1.2.3