__func__ instead of __FUNCTION__
The former is part of the C99 standard while the latter is a GCC extension.
This commit is contained in:
@ -151,10 +151,10 @@ void logmanager_enable_syslog(int);
|
|||||||
void logmanager_enable_maxscalelog(int);
|
void logmanager_enable_maxscalelog(int);
|
||||||
|
|
||||||
#define skygw_log_write(id, format, ...)\
|
#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, ...)\
|
#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.
|
* What augmentation if any should a logged message be augmented with.
|
||||||
|
Reference in New Issue
Block a user