diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-10-05 21:57:30 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-10-07 10:30:40 +0200 |
commit | 104ba12a92f3c4c31ffd203ff9667063381c43cb (patch) | |
tree | c773fb04cf73d16efec788e523124e3e53c058e0 /common | |
parent | a7e32851c5712f8821874c2e264f81f512d90bac (diff) | |
download | barebox-104ba12a92f3c4c31ffd203ff9667063381c43cb.tar.gz barebox-104ba12a92f3c4c31ffd203ff9667063381c43cb.tar.xz |
common: ubiformat: print 100 % complete message when done
During formatting, current progress is printed every 300ms, e.g.:
ubiformat: formatting eraseblock 1936 -- 95 % complete
When formatting is done, a single new line is printed. When ubiformat is
called in the fastboot workqueue, the barebox prompt won't be printed
again, so the user may think that update is stuck at the last message
printed. Improve user experience by explicitly printing a 100 % complete
message.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20221005195730.3405753-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/ubiformat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/ubiformat.c b/common/ubiformat.c index e10ce31ce6..1edfc5b2a3 100644 --- a/common/ubiformat.c +++ b/common/ubiformat.c @@ -444,7 +444,7 @@ static int format(struct ubiformat_args *args, struct mtd_info *mtd, } if (!args->quiet && !args->verbose) - printf("\n"); + printf("\rubiformat: formatted all eraseblocks -- 100 %% complete\n"); if (!novtbl) { if (eb1 == -1 || eb2 == -1) { |