summaryrefslogtreecommitdiff
path: root/misc/tools/osmocon/panic.c
blob: 0dc7dcc6e357f0ddd68246afbd4c5054736b5150 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <stdio.h>
#include <stdlib.h>

#include "panic.h"

static void osmo_panic_default(const char *fmt, va_list args)
{
	vfprintf(stderr, fmt, args);
	abort();
}

void osmo_panic(const char *fmt, ...)
{
	va_list args;

	va_start(args, fmt);
	osmo_panic_default(fmt, args);
	va_end(args);
}
 

void osmo_set_panic_handler(osmo_panic_handler_t h)
{
}