summaryrefslogtreecommitdiffstats
path: root/ax25ipd/syslog.c
blob: 493e21f9bc5096527e17bcd192dc519cbd05af7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdarg.h>
#include <syslog.h>

#include "ax25ipd.h"

void LOGLn(int level, const char *format, ...)
{
	va_list va;

	va_start(va, format);

	if (loglevel >= level)
		vsyslog(LOG_DAEMON | LOG_WARNING, format, va);

	va_end(va);
}