From e5649bbb4e6555370f4c46b070616c1b215a6135 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 16 Feb 2015 11:32:03 +0100 Subject: log: Add log_dbg() to facilitate debugging Signed-off-by: Tobias Klauser --- log.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'log.h') diff --git a/log.h b/log.h index d8dfe59..03b77dc 100644 --- a/log.h +++ b/log.h @@ -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 */ -- cgit v1.2.3-54-g00ecf