Home | History | Annotate | Line # | Download | only in bootxx
panic_putstr.c revision 1.1.2.1
      1  1.1.2.1  gehenna /*	$NetBSD: panic_putstr.c,v 1.1.2.1 2002/07/15 01:22:22 gehenna Exp $	*/
      2      1.1    lukem 
      3      1.1    lukem 
      4      1.1    lukem #include <machine/stdarg.h>
      5      1.1    lukem #include <stand.h>
      6      1.1    lukem #include "libsa.h"
      7      1.1    lukem 
      8      1.1    lukem __dead void
      9      1.1    lukem panic(const char *fmt, ...)
     10      1.1    lukem {
     11      1.1    lukem 
     12      1.1    lukem 	putstr("panic: ");
     13      1.1    lukem 	putstr(fmt);
     14      1.1    lukem 	putchar('\n');
     15      1.1    lukem 
     16      1.1    lukem 	breakpoint();
     17  1.1.2.1  gehenna 	exit(0);
     18      1.1    lukem }
     19