From 881a1a816d7ca51f9339066ba992a28f0ebfbe32 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 23 Jun 2015 14:22:32 +0100 Subject: [PATCH] Avoid gcc'ism. --- src/libutil/logger.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/libutil/logger.h b/src/libutil/logger.h index 14ffa45f0..6948f8e04 100644 --- a/src/libutil/logger.h +++ b/src/libutil/logger.h @@ -114,39 +114,39 @@ void rspamd_log_nodebug (rspamd_logger_t *logger); #if defined(RSPAMD_MAIN) #define msg_err(...) rspamd_common_log_function (rspamd_main->logger, \ G_LOG_LEVEL_CRITICAL, \ - __FUNCTION__, \ + G_STRFUNC, \ __VA_ARGS__) #define msg_warn(...) rspamd_common_log_function (rspamd_main->logger, \ G_LOG_LEVEL_WARNING, \ - __FUNCTION__, \ + G_STRFUNC, \ __VA_ARGS__) #define msg_info(...) rspamd_common_log_function (rspamd_main->logger, \ G_LOG_LEVEL_INFO, \ - __FUNCTION__, \ + G_STRFUNC, \ __VA_ARGS__) #define msg_debug(...) rspamd_conditional_debug (rspamd_main->logger, \ NULL, \ - __FUNCTION__, \ + G_STRFUNC, \ __VA_ARGS__) #define debug_task(...) rspamd_conditional_debug (rspamd_main->logger, \ task->from_addr, \ - __FUNCTION__, \ + G_STRFUNC, \ __VA_ARGS__) #else #define msg_err(...) rspamd_default_log_function (G_LOG_LEVEL_CRITICAL, \ - __FUNCTION__, \ + G_STRFUNC, \ __VA_ARGS__) #define msg_warn(...) rspamd_default_log_function (G_LOG_LEVEL_WARNING, \ - __FUNCTION__, \ + G_STRFUNC, \ __VA_ARGS__) #define msg_info(...) rspamd_default_log_function (G_LOG_LEVEL_INFO, \ - __FUNCTION__, \ + G_STRFUNC, \ __VA_ARGS__) #define msg_debug(...) rspamd_default_log_function (G_LOG_LEVEL_DEBUG, \ - __FUNCTION__, \ + G_STRFUNC, \ __VA_ARGS__) #define debug_task(...) rspamd_default_log_function (G_LOG_LEVEL_DEBUG, \ - __FUNCTION__, \ + G_STRFUNC, \ __VA_ARGS__) #endif -- 2.39.5