- fixed bug in panic which allowed it to fail to print the message if the

log file hadn't been opened yet.
This commit is contained in:
Bryce Denney 2001-05-03 20:58:19 +00:00
parent 10412cdf1e
commit 3a6b2e929e

View File

@ -308,7 +308,14 @@ bx_panic(char *fmt, ...)
va_start(ap, fmt);
vfprintf(bx_logfd, fmt, ap);
va_end(ap);
}
} else {
/* panic message is critical to knowing what went wrong. print to
stderr instead */
fprintf(stderr, "bochs: panic, ");
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
}
#if !BX_PANIC_IS_FATAL
return;