summaryrefslogtreecommitdiff
path: root/misc/tools/osmocon/panic.c
blob: 88a4bb6e54b5bba8356711cc39a7801a7cc74736 (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)
{
}