Light has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/64668 )
Change subject: cli_output.c: Format progress output to show in single line ......................................................................
cli_output.c: Format progress output to show in single line
Currently, the progress output is repeatedly printed which starts to fill up the screen if the operation is a long one. Tidy up the progress printing by using '\r' to overwrite previous progress
Change-Id: If982193f9857f0da47cd71706ce6cebaa60d4323 Signed-off-by: Aarya Chaumal aarya.chaumal@gmail.com --- M cli_output.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/68/64668/1
diff --git a/cli_output.c b/cli_output.c index e5b829a..598209f 100644 --- a/cli_output.c +++ b/cli_output.c @@ -85,7 +85,7 @@ ((unsigned long long) progress_state->total * 100llu); if (percentages[progress_state->stage] != pc) { percentages[progress_state->stage] = pc; - msg_ginfo("[%s] %u%% complete... ", flashrom_progress_stage_to_string(progress_state->stage), pc); + msg_ginfo("\r[%s] %u%% complete... ", flashrom_progress_stage_to_string(progress_state->stage), pc); } }