[or-cvs] Fix MacOS build
Nick Mathewson
nickm at seul.org
Sat Jun 14 01:28:27 UTC 2003
Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv3071/src/common
Modified Files:
log.h
Log Message:
Fix MacOS build
Index: log.h
===================================================================
RCS file: /home/or/cvsroot/src/common/log.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- log.h 9 May 2003 11:46:39 -0000 1.5
+++ log.h 14 Jun 2003 01:28:24 -0000 1.6
@@ -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
More information about the tor-commits
mailing list