The !RESTARTABLE_PANICS code has some loose ends.

This commit is contained in:
Peter Wemm 2001-09-02 12:24:38 +00:00
parent ef4181d98e
commit 772121fd11

View File

@ -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)