The !RESTARTABLE_PANICS code has some loose ends.
This commit is contained in:
parent
ef4181d98e
commit
772121fd11
@ -574,7 +574,9 @@ void
|
||||
panic(const char *fmt, ...)
|
||||
{
|
||||
int bootopt;
|
||||
#if defined(DDB) && defined(RESTARTABLE_PANICS)
|
||||
int holding_giant = 0;
|
||||
#endif
|
||||
va_list ap;
|
||||
static char buf[256];
|
||||
|
||||
@ -610,6 +612,12 @@ panic(const char *fmt, ...)
|
||||
else
|
||||
panicstr = fmt;
|
||||
|
||||
/* Test that the console is still working. */
|
||||
printf(" \\|/ ____ \\|/\n"
|
||||
" \"@'/ .. \\`@\"\n"
|
||||
" /_| \\__/ |_\\\n"
|
||||
" \\__U_/\n");
|
||||
|
||||
va_start(ap, fmt);
|
||||
(void)vsnprintf(buf, sizeof(buf), fmt, ap);
|
||||
if (panicstr == fmt)
|
||||
|
Loading…
x
Reference in New Issue
Block a user