File: debug.h

package info (click to toggle)
multipath-tools 0.5.0-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 1,800 kB
  • sloc: ansic: 26,772; sh: 844; makefile: 374
file content (13 lines) | stat: -rw-r--r-- 262 bytes parent folder | download | duplicates (7)
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)