Go to the documentation of this file.
28 #ifndef INCL_UTIL_LOG_H
29 #define INCL_UTIL_LOG_H 1
54 #if defined(DEBUG) && 0
56 void log_debug(
char *file,
int line,
char *subsys,
const char *msgfmt, ...);
58 # define log_debug_get_flag() log_debug_flag
59 # define log_debug_set_flag(f) (log_debug_flag = f ? 1 : 0)
60 # define log_debug(...) if(log_debug_flag) __log_debug(__FILE__,__LINE__,0,__VA_ARGS__)
61 # define log_debug_subsys(...) if(log_debug_flag) __log_debug(__FILE__,__LINE__,__VA_ARGS__)
63 # define log_debug_get_flag() (0)
64 # define log_debug_set_flag(f)
65 # define log_debug(...)
66 # define log_debug_subsys(...)