File: debug.h

package info (click to toggle)
multipath-tools 0.4.7-1.1
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 1,196 kB
  • ctags: 2,144
  • sloc: ansic: 18,261; makefile: 398; sh: 270
file content (21 lines) | stat: -rw-r--r-- 373 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
void dlog (int sink, int prio, char * fmt, ...)
	__attribute__((format(printf, 3, 4)));

#if DAEMON

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

#include "log_pthread.h"

int logsink;

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

#else /* DAEMON */

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

#endif /* DAEMON */