From 20b9bef63c670a3a6cefe578a553e21048ed03a8 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Wed, 12 Jul 2000 20:28:36 +0000 Subject: fixed an errant log message --- loader/loader.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'loader/loader.c') diff --git a/loader/loader.c b/loader/loader.c index 47a01799f..d246c603f 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -2137,7 +2137,7 @@ void setFloppyDevice(int flags) { f = fopen("/tmp/syslog", "r"); while (fgets(line, sizeof(line), f)) { - if (!strncmp(line + 1, match, strlen(match))) { + if (!strncmp(line + 3, match, strlen(match))) { foundFd0 = 1; break; } @@ -2145,12 +2145,11 @@ void setFloppyDevice(int flags) { fclose(f); - if (!foundFd0) { + if (!foundFd0) floppyDevice = strdup(devices[0]->device); - logMessage("IDE floppy %s is the primary floppy device on this " - "system"); - } #endif + + logMessage("system floppy device is %s", floppyDevice); } int main(int argc, char ** argv) { -- cgit