- 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:
parent
10412cdf1e
commit
3a6b2e929e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user