summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-09-02 12:24:38 +0000
committerpeter <peter@FreeBSD.org>2001-09-02 12:24:38 +0000
commit9afaf5c2383745fbd5d086c7fa53230d705e71d9 (patch)
tree2156c652ff0964b8e7c8732432a860c5e26041d2
parentf685acc2680dd4c763e317926cc1aa6571820518 (diff)
downloadFreeBSD-src-9afaf5c2383745fbd5d086c7fa53230d705e71d9.zip
FreeBSD-src-9afaf5c2383745fbd5d086c7fa53230d705e71d9.tar.gz
The !RESTARTABLE_PANICS code has some loose ends.
-rw-r--r--sys/kern/kern_shutdown.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index 90b3642..fe3f1ed 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -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)
OpenPOWER on IntegriCloud