summaryrefslogtreecommitdiff
path: root/src/common/log.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-06-14 01:28:25 +0000
committerNick Mathewson <nickm@torproject.org>2003-06-14 01:28:25 +0000
commit71b158bf2f956750a5d5efed0eb3101671c5a024 (patch)
treed4421a341980f06d111ec0ff4d3ae62bac37f4c4 /src/common/log.h
parent6250b90ac211a67bb7e36c9911f31b06154bb7df (diff)
downloadtor-71b158bf2f956750a5d5efed0eb3101671c5a024.tar.gz
tor-71b158bf2f956750a5d5efed0eb3101671c5a024.zip
Fix MacOS build
svn:r320
Diffstat (limited to 'src/common/log.h')
-rw-r--r--src/common/log.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/log.h b/src/common/log.h
index 5f54ba7033..d8311d20fb 100644
--- a/src/common/log.h
+++ b/src/common/log.h
@@ -13,10 +13,13 @@
void log(int severity, const char *format, ...);
#ifdef __GNUC__
-#define log_fn(severity, format, args...) \
+#define log_fn(severity, format) \
+ log((severity), "%s(): " format , __PRETTY_FUNCTION__)
+#define log_fnf(severity, format, args...) \
log((severity), "%s(): " format , __PRETTY_FUNCTION__ , ##args)
#else
#define log_fn log
+#define log_fnf log
#endif
# define __LOG_H