1 /* $NetBSD: panic.c,v 1.1.8.2 2002/06/20 03:42:00 nathanw Exp $ */ 2 3 4 #include <machine/stdarg.h> 5 #include <stand.h> 6 #include "libsa.h" 7 8 __dead void 9 panic(const char *fmt, ...) 10 { 11 va_list ap; 12 13 va_start(ap, fmt); 14 vprintf(fmt, ap); 15 putchar('\n'); 16 va_end(ap); 17 breakpoint(); 18 exit(0); 19 } 20