summaryrefslogtreecommitdiff
path: root/sys/kern/subr_prf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r--sys/kern/subr_prf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index 2adb7793a3c5..5ef4925856f2 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -122,6 +122,10 @@ panic(fmt, va_alist)
if (boothowto & RB_KDB)
kdbpanic();
#endif
+#include "ddb.h"
+#if NDDB > 0
+ Debugger ("panic");
+#endif
boot(bootopt);
}
@@ -508,8 +512,10 @@ putchar(c, flags, tp)
* Scaled down version of sprintf(3).
*/
#ifdef __STDC__
+int
sprintf(char *buf, const char *cfmt, ...)
#else
+int
sprintf(buf, cfmt, va_alist)
char *buf, *cfmt;
#endif