summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-07-26 15:51:11 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-07-26 15:56:20 +0300
commit1633cc075c780828f667a752c74a1d571a6f041e (patch)
treec50b20eb2d5ff333a92610eef3a15664e49e354c
parent44729d133c846692fdf20fe980038546e60c39ab (diff)
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 <Artem.Bityutskiy@nokia.com>
-rw-r--r--ubi-utils/src/ubiformat.c2
1 files changed, 1 insertions, 1 deletions
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;