summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/log.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2000-12-11 15:10:33 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2000-12-11 15:10:33 +0000
commit75dbadee24b0bd6b738093b66f8415a630692671 (patch)
tree8c2b03dddfa8d55dab163bf035f2d7e595a7eb70 /mdk-stage1/log.c
parentd7845ac2fcec5db5dc4c6e4a40ad516aa2ef531f (diff)
downloaddrakx-backup-do-not-use-75dbadee24b0bd6b738093b66f8415a630692671.tar
drakx-backup-do-not-use-75dbadee24b0bd6b738093b66f8415a630692671.tar.gz
drakx-backup-do-not-use-75dbadee24b0bd6b738093b66f8415a630692671.tar.bz2
drakx-backup-do-not-use-75dbadee24b0bd6b738093b66f8415a630692671.tar.xz
drakx-backup-do-not-use-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.c19
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)
{