]> source.dussan.org Git - rspamd.git/commitdiff
Avoid gcc'ism.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 23 Jun 2015 13:22:32 +0000 (14:22 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 23 Jun 2015 13:51:58 +0000 (14:51 +0100)
src/libutil/logger.h

index 14ffa45f07493b597b98c4c9c3b6ad6a4a90d740..6948f8e04cec7544dbef7219aee884f822ea53c2 100644 (file)
@@ -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