diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-02-16 11:32:03 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-02-16 11:32:03 +0100 |
commit | e5649bbb4e6555370f4c46b070616c1b215a6135 (patch) | |
tree | 74f81856018c4aaade380cdba4c8b3da2937de57 /log.h | |
parent | e06c7eeb845da73eac03dc35018bbf279ddd42ad (diff) |
log: Add log_dbg() to facilitate debugging
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'log.h')
-rw-r--r-- | log.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -24,5 +24,10 @@ #define log_err(fmt, args...) fprintf(stderr, "Error: " fmt, ##args) #define log_warn(fmt, args...) fprintf(stderr, "Warning: " fmt, ##args) #define log_info(fmt, args...) fprintf(stdout, fmt, ##args) +#ifdef DEBUG +# define log_dbg(fmt, args...) fprintf(stdout, fmt, ##args) +#else +# define log_dbg(fmt, args...) +#endif #endif /* LOG_H */ |