diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-06-17 21:36:44 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-06-17 21:36:44 +0000 |
commit | 5fd033a8e8d98161888964e53b58e31d226df3f3 (patch) | |
tree | 3e7cda29906bcaf5c02ac8db08e873a25c4f22b1 /src/common/log.h | |
parent | b9480620c61e1eb5115353e1ff79c2d676d70964 (diff) | |
download | tor-5fd033a8e8d98161888964e53b58e31d226df3f3.tar.gz tor-5fd033a8e8d98161888964e53b58e31d226df3f3.zip |
Come up with a less macro-happy, even more portable log_fn implementation
svn:r331
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 5669a511aa..635b15dbd7 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 |