From ff5dc2534e4a359a55fed0cc92ca0c7a008e88ed Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 16 May 2012 16:56:07 -0700 Subject: [PATCH] rename _log_debug to log_debug and get rid of the cumbersome #define --- src/util/log.c | 2 +- src/util/log.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/util/log.c b/src/util/log.c index 411f4d53c..48155cde3 100644 --- a/src/util/log.c +++ b/src/util/log.c @@ -168,7 +168,7 @@ static void _log_write(FILE * stream, int codepage, const char * prefix, const c } } -void _log_debug(const char *format, ...) +void log_debug(const char *format, ...) { const char * prefix = "DEBUG"; const int mask = LOG_CPDEBUG; diff --git a/src/util/log.h b/src/util/log.h index 9c49032f6..ffc4a297b 100644 --- a/src/util/log.h +++ b/src/util/log.h @@ -19,12 +19,10 @@ extern "C" { extern void log_close(void); extern void log_flush(void); -#define log_debug _log_debug - /* use macros above instead of these: */ extern void log_warning(const char *format, ...); extern void log_error(const char *format, ...); - extern void _log_debug(const char *format, ...); + extern void log_debug(const char *format, ...); extern void log_info(const char *format, ...); extern void log_printf(FILE * ios, const char *format, ...);