Commit b5361f77 authored by Warren Dukes's avatar Warren Dukes

always support DEBUG() logging, even if -DNDEBUG

git-svn-id: https://svn.musicpd.org/mpd/trunk@4613 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent ca7fdaa9
......@@ -188,10 +188,7 @@ mpd_printf void func(const char *fmt, ...) \
log_func(ERROR, 0, stderr)
log_func(LOG, 0, stdout)
log_func(SECURE, LOG_LEVEL_SECURE, stdout)
#ifndef NDEBUG
log_func(DEBUG, LOG_LEVEL_DEBUG, stdout)
#endif /* NDEBUG */
#undef log_func
......
......@@ -29,15 +29,10 @@
#define LOG_LEVEL_SECURE 1
#define LOG_LEVEL_DEBUG 2
#ifndef NDEBUG
mpd_printf void DEBUG(const char *fmt, ...);
#else
static inline void DEBUG(const char *fmt, ...) { }
#endif
mpd_printf void ERROR(const char *fmt, ...);
mpd_printf void LOG(const char *fmt, ...);
mpd_printf void SECURE(const char *fmt, ...);
mpd_printf void DEBUG(const char *fmt, ...);
mpd_printf void WARNING(const char *fmt, ...);
mpd_printf void FATAL(const char *fmt, ...);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment