diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2000-12-11 15:10:33 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2000-12-11 15:10:33 +0000 |
commit | 75dbadee24b0bd6b738093b66f8415a630692671 (patch) | |
tree | 8c2b03dddfa8d55dab163bf035f2d7e595a7eb70 /mdk-stage1/log.c | |
parent | d7845ac2fcec5db5dc4c6e4a40ad516aa2ef531f (diff) | |
download | drakx-75dbadee24b0bd6b738093b66f8415a630692671.tar drakx-75dbadee24b0bd6b738093b66f8415a630692671.tar.gz drakx-75dbadee24b0bd6b738093b66f8415a630692671.tar.bz2 drakx-75dbadee24b0bd6b738093b66f8415a630692671.tar.xz drakx-75dbadee24b0bd6b738093b66f8415a630692671.zip |
week-end stuff: now supports second stage as a ramdisk
adds better device files handling (some in initrd, others dynamically created)
better logging of detected IDE and SCSI devices
Diffstat (limited to 'mdk-stage1/log.c')
-rw-r--r-- | mdk-stage1/log.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/mdk-stage1/log.c b/mdk-stage1/log.c index 173ebe520..8faa166c0 100644 --- a/mdk-stage1/log.c +++ b/mdk-stage1/log.c @@ -65,9 +65,26 @@ void log_message(const char * s, ...) void log_perror(char *msg) { - log_message("%s %s", strerror(errno), msg); + log_message("%s: %s", msg, strerror(errno)); } +void log_progression(int divide_for_count) +{ + static int count = 0; + if (count <= 0) { + fprintf(logfile, "."); + fflush(logfile); + count = divide_for_count; + } + else + count--; +} + +void log_progression_done(void) +{ + fprintf(logfile, "done\n"); +} + void open_log(void) { |