summaryrefslogtreecommitdiff
path: root/libmultipath/debug.h
blob: c6120c1d0d61d6702aaa562b284791159f22a338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
void dlog (int sink, int prio, const char * fmt, ...)
	__attribute__((format(printf, 3, 4)));


#include <pthread.h>
#include <stdarg.h>

#include "log_pthread.h"

extern int logsink;

#define condlog(prio, fmt, args...) \
	dlog(logsink, prio, fmt "\n", ##args)