commit d16543a: [Minor] Use __func__ in c++ mode as defined by standard

Vsevolod Stakhov vsevolod at rspamd.com
Tue Oct 18 22:14:04 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-10-18 23:10:17 +0100
URL: https://github.com/rspamd/rspamd/commit/d16543a3b4c70ee29da64172e04df7498c5421a6

[Minor] Use __func__ in c++ mode as defined by standard

---
 src/libserver/logger.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libserver/logger.h b/src/libserver/logger.h
index 35792e68e..164e0b97e 100644
--- a/src/libserver/logger.h
+++ b/src/libserver/logger.h
@@ -252,7 +252,7 @@ struct rspamd_logger_funcs* rspamd_logger_set_log_function (rspamd_logger_t *log
 
 extern guint rspamd_task_log_id;
 #ifdef __cplusplus
-#define RSPAMD_LOG_FUNC __FUNCTION__
+#define RSPAMD_LOG_FUNC __func__
 #else
 #define RSPAMD_LOG_FUNC G_STRFUNC
 #endif


More information about the Commits mailing list