diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-23 14:22:32 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-23 14:22:32 +0100 |
commit | fc56f29d5c891ca678b7f18a90832fe4bfa7bc49 (patch) | |
tree | fc1afa8a86550a3b2c6e8c423189fc2a8e74e63c | |
parent | c137be80df707ffaf71d5d3ed1c38c20fc9b8e9a (diff) | |
download | rspamd-fc56f29d5c891ca678b7f18a90832fe4bfa7bc49.tar.gz rspamd-fc56f29d5c891ca678b7f18a90832fe4bfa7bc49.zip |
Avoid gcc'ism.
-rw-r--r-- | src/libutil/logger.h | 20 |
1 files 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 |