From 1c54e49e41c10306f6316aaf4d0380f605cb29c5 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Sun, 26 Jul 2009 15:43:03 +0300 Subject: ubiformat: minor printing clean-up When a PEB is marked as bad while we are formatting, ubiformat prints 99% done at the end. Make it print 100% done instead. Signed-off-by: Artem Bityutskiy --- ubi-utils/src/ubiformat.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'ubi-utils/src/ubiformat.c') diff --git a/ubi-utils/src/ubiformat.c b/ubi-utils/src/ubiformat.c index c15500b..d0def44 100644 --- a/ubi-utils/src/ubiformat.c +++ b/ubi-utils/src/ubiformat.c @@ -483,7 +483,6 @@ static int flash_image(const struct mtd_dev_info *mtd, struct ubi_scan_info *si) if (mark_bad(mtd, si, eb)) goto out_close; - divisor += 1; continue; } @@ -536,7 +535,6 @@ static int flash_image(const struct mtd_dev_info *mtd, struct ubi_scan_info *si) normsg("operation incomplete"); goto out_close; } - divisor += 1; } continue; } -- cgit v1.2.3