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