flinklib
flinklib: flink C library for Linux
log.h
Go to the documentation of this file.
1 /*******************************************************************
2  * _________ _____ _____ ____ _____ ___ ____ *
3  * |_ ___ | |_ _| |_ _| |_ \|_ _| |_ ||_ _| *
4  * | |_ \_| | | | | | \ | | | |_/ / *
5  * | _| | | _ | | | |\ \| | | __'. *
6  * _| |_ _| |__/ | _| |_ _| |_\ |_ _| | \ \_ *
7  * |_____| |________| |_____| |_____|\____| |____||____| *
8  * *
9  *******************************************************************
10  * *
11  * fLink userspace library, logging *
12  * *
13  *******************************************************************/
14 
21 #ifndef FLINKLIB_LOGGING_H_
22 #define FLINKLIB_LOGGING_H_
23 
24 #include <stdio.h>
25 
26 #define PRINT_ERRORS_TO_STDERR 1
27 #define DEBUG 0
28 
29 #define dbg_print(fmt, ...) do { if(DEBUG) { printf("[flinklib] DEBUG: "); printf(fmt, ##__VA_ARGS__); } } while(0)
30 
31 #endif // FLINKLIB_LOGGING_H_