summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/probing.c2
-rw-r--r--mdk-stage1/stdio-frontend.c13
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);
}