summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/log.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2000-12-08 19:26:57 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2000-12-08 19:26:57 +0000
commit2c34d1a1a491861b68b76d6dbb449771d1cf114c (patch)
treebd06ff016d5417ef10ca6c67432622dd7ee8afc3 /mdk-stage1/log.c
parent28b12d4a72442d2a13b42460f93eb64d8856ae41 (diff)
downloaddrakx-backup-do-not-use-2c34d1a1a491861b68b76d6dbb449771d1cf114c.tar
drakx-backup-do-not-use-2c34d1a1a491861b68b76d6dbb449771d1cf114c.tar.gz
drakx-backup-do-not-use-2c34d1a1a491861b68b76d6dbb449771d1cf114c.tar.bz2
drakx-backup-do-not-use-2c34d1a1a491861b68b76d6dbb449771d1cf114c.tar.xz
drakx-backup-do-not-use-2c34d1a1a491861b68b76d6dbb449771d1cf114c.zip
mdk-stage1 can now run the Install from CDROM
Diffstat (limited to 'mdk-stage1/log.c')
-rw-r--r--mdk-stage1/log.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mdk-stage1/log.c b/mdk-stage1/log.c
index 7536d0a08..173ebe520 100644
--- a/mdk-stage1/log.c
+++ b/mdk-stage1/log.c
@@ -27,6 +27,7 @@
#include <string.h>
#include <time.h>
#include <errno.h>
+#include "stage1.h"
#include "log.h"
@@ -68,9 +69,9 @@ void log_perror(char *msg)
}
-void open_log(int testing)
+void open_log(void)
{
- if (!testing) {
+ if (!IS_TESTING) {
logfile = fopen("/dev/tty3", "w");
if (!logfile)
logfile = fopen("/tmp/install.log", "a");
@@ -81,6 +82,8 @@ void open_log(int testing)
void close_log(void)
{
- if (logfile)
+ if (logfile) {
+ log_message("stage1: disconnecting life support systems");
fclose(logfile);
+ }
}