diff options
Diffstat (limited to 'src/common/log.h')
-rw-r--r-- | src/common/log.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/common/log.h b/src/common/log.h index 5669a511a..635b15dbd 100644 --- a/src/common/log.h +++ b/src/common/log.h @@ -13,16 +13,11 @@ void log(int severity, const char *format, ...); #ifdef __GNUC__ -#ifdef __APPLE_CPP__ +void _log_fn(int severity, const char *funcname, const char *format, ...); #define log_fn(severity, args...) \ - log((severity), __PRETTY_FUNCTION__ "(): " args) -#else -#define log_fn(severity, format, args...) \ - log((severity), "%s(): " format, __PRETTY_FUNCTION__ , ##args) -#endif + _log_fn(severity, __PRETTY_FUNCTION__, args) #else #define log_fn log -#define log_fnf log #endif # define __LOG_H |