From 29e241ee609c355682828d7646c7c07c3a1a93b5 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Fri, 23 Oct 2015 10:27:35 +0300 Subject: [PATCH] __func__ instead of __FUNCTION__ The former is part of the C99 standard while the latter is a GCC extension. --- log_manager/log_manager.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log_manager/log_manager.h b/log_manager/log_manager.h index 32576a586..ed7edd74b 100644 --- a/log_manager/log_manager.h +++ b/log_manager/log_manager.h @@ -151,10 +151,10 @@ void logmanager_enable_syslog(int); void logmanager_enable_maxscalelog(int); #define skygw_log_write(id, format, ...)\ - skygw_log_write_context(id, __FILE__, __LINE__, __FUNCTION__, format, ##__VA_ARGS__) + skygw_log_write_context(id, __FILE__, __LINE__, __func__, format, ##__VA_ARGS__) #define skygw_log_write_flush(id, format, ...)\ - skygw_log_write_context_flush(id, __FILE__, __LINE__, __FUNCTION__, format, ##__VA_ARGS__) + skygw_log_write_context_flush(id, __FILE__, __LINE__, __func__, format, ##__VA_ARGS__) /** * What augmentation if any should a logged message be augmented with.