summaryrefslogtreecommitdiff
path: root/sys/arch/sun3/stand/libsa/panic.c
blob: 32e1113c62c6514b11afc00ba9b4bdaf2305c81c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*	$OpenBSD: panic.c,v 1.4 2001/07/04 08:33:51 niklas Exp $	*/


#include <stdarg.h>
#include "stand.h"

extern __dead void abort();

__dead void
panic(const char *fmt, ...)
{
	va_list ap;

	va_start(ap, fmt);
	vprintf(fmt, ap);
	printf("\n");
	va_end(ap);
	abort();
}