reduce default verbosity
[lttng-ust.git] / ustd / localerr.h
1 #include <stdio.h>
2
3 //#define DEBUG
4 #ifdef DEBUG
5 # define DBG(fmt, args...) fprintf(stderr, "ustd: " fmt "\n", ## args); fflush(stderr)
6 #else
7 # define DBG(fmt, args...) do {} while(0)
8 #endif
9
10 #define WARN(fmt, args...) fprintf(stderr, "ustd: WARNING: " fmt "\n", ## args); fflush(stderr)
11 #define ERR(fmt, args...) fprintf(stderr, "ustd: ERROR: " fmt "\n", ## args); fflush(stderr)
12 #define PERROR(a) perror(a)
This page took 0.030394 seconds and 4 git commands to generate.