summaryrefslogtreecommitdiff
path: root/test/test_log.c
blob: 55e07e5cdf4a251d0b6f395f00d6bb31c43c4d1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>

#include "test.h"

void die(const char *fmt, ...)
{
	va_list va;

	va_start(va, fmt);
	vfprintf(stderr, fmt, va);
	va_end(va);

	exit(1);
}