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
|
|
|
|
1996-01-30 02:41:03 +03:00
|
|
|
__dead void
|
1995-02-15 01:56:36 +03:00
|
|
|
panic(const char *fmt, ...)
|
|
|
|
{
|
1996-01-30 02:41:03 +03:00
|
|
|
va_list ap;
|
1995-02-15 01:56:36 +03:00
|
|
|
|
1996-01-30 02:41:03 +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
|
|
|
}
|