]> www.infradead.org Git - mtd-utils.git/commitdiff
ubiformat: minor printing clean-up
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 26 Jul 2009 12:43:03 +0000 (15:43 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 26 Jul 2009 12:43:03 +0000 (15:43 +0300)
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 <Artem.Bityutskiy@nokia.com>
ubi-utils/src/ubiformat.c

index c15500ba688a234df42e3d6b55c0621e7f008c0c..d0def4440a476f857cfa7ea5a9925b39c5735062 100644 (file)
@@ -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;
                }