NetBSD/sys/arch/sun3/stand/libsa/panic.c

20 lines
269 B
C
Raw Normal View History

1998-02-05 07:56:24 +03:00
/* $NetBSD: panic.c,v 1.5 1998/02/05 04:57:13 gwr Exp $ */
1998-01-05 10:02:46 +03:00
1995-02-15 01:56:36 +03:00
#include <stdarg.h>
1998-02-05 07:56:24 +03:00
#include <stand.h>
#include "libsa.h"
1995-02-15 01:56:36 +03:00
__dead void
1995-02-15 01:56:36 +03:00
panic(const char *fmt, ...)
{
va_list ap;
1995-02-15 01:56:36 +03:00
va_start(ap, fmt);
vprintf(fmt, ap);
printf("\n");
va_end(ap);
1998-02-05 07:56:24 +03:00
breakpoint();
exit();
1995-02-15 01:56:36 +03:00
}