From f451377cc1194837ce579afc57bee6de28fe3344 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 12 Dec 2000 22:57:29 +0000 Subject: blah, don't include my test file in the repositoty --- mdk-stage1/probing.c | 2 +- mdk-stage1/stdio-frontend.c | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/mdk-stage1/probing.c b/mdk-stage1/probing.c index c61552f07..6d70137e2 100644 --- a/mdk-stage1/probing.c +++ b/mdk-stage1/probing.c @@ -397,7 +397,7 @@ char ** get_net_devices(void) while (ptr && *ptr) { if (net_device_available(*ptr)) { - log_message("NET: interface %s available", *ptr); + log_message("NET: %s is available", *ptr); tmp[i++] = strdup(*ptr); } ptr++; diff --git a/mdk-stage1/stdio-frontend.c b/mdk-stage1/stdio-frontend.c index 27aa3782e..095c269a0 100644 --- a/mdk-stage1/stdio-frontend.c +++ b/mdk-stage1/stdio-frontend.c @@ -104,22 +104,21 @@ static int actually_drawn; void init_progression(char *msg, int size) { + int i; size_progress = size; actually_drawn = 0; printf("%s\n[", msg); + for (i=0; i<40; i++) + printf("."); + printf("]\033[G["); /* only works on ANSI-compatibles */ + fflush(stdout); } void update_progression(int current_size) { while ((int)((current_size*40)/size_progress) > actually_drawn) { - printf("."); + printf("*"); actually_drawn++; - if (actually_drawn == 10) - printf("(25%%)"); - if (actually_drawn == 20) - printf("(50%%)"); - if (actually_drawn == 30) - printf("(75%%)"); } fflush(stdout); } -- cgit v1.2.1