aboutsummaryrefslogtreecommitdiff
path: root/src/common/log.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-05-09 11:46:39 +0000
committerNick Mathewson <nickm@torproject.org>2003-05-09 11:46:39 +0000
commitc94d42fa41cd4fdaa36ba5c99193de8639f52b12 (patch)
tree606d9632c59cf45614f073fbec0231a3bde42bd5 /src/common/log.h
parentfb435daa2838393a27b678c43d5255b457bd7ecd (diff)
downloadtor-c94d42fa41cd4fdaa36ba5c99193de8639f52b12.tar.gz
tor-c94d42fa41cd4fdaa36ba5c99193de8639f52b12.zip
Fail less spectacularly on macos
svn:r291
Diffstat (limited to 'src/common/log.h')
-rw-r--r--src/common/log.h35
1 files changed, 1 insertions, 34 deletions
diff --git a/src/common/log.h b/src/common/log.h
index fd081315c0..5f54ba7033 100644
--- a/src/common/log.h
+++ b/src/common/log.h
@@ -5,39 +5,6 @@
* Matej Pfajfar <mp292@cam.ac.uk>
*/
-/*
- * Changes :
- * $Log$
- * Revision 1.4 2003/05/09 03:37:18 nickm
- * Fix build on linux; macos is still messed up
- *
- * Revision 1.3 2003/05/09 02:41:27 nickm
- * One is the language; the other is the compiler
- *
- * Revision 1.2 2003/05/09 02:25:37 nickm
- * work on versioning; new log_fn function
- *
- * Revision 1.1.1.1 2002/06/26 22:45:50 arma
- * initial commit: current code
- *
- * Revision 1.5 2002/01/26 18:52:00 mp292
- * Reviewed according to Secure-Programs-HOWTO.
- *
- * Revision 1.4 2001/12/18 10:37:47 badbytes
- * Header files now only apply if they were not previously included from somewhere else.
- *
- * Revision 1.3 2001/12/07 09:38:03 badbytes
- * Tested.
- *
- * Revision 1.2 2001/12/06 15:43:50 badbytes
- * config.c compiles. Proceeding to test it.
- *
- * Revision 1.1 2001/11/21 23:03:41 mp292
- * log function coded and tested.
- * Top-level makefile.
- *
- */
-
#ifndef __LOG_H
#include <syslog.h>
@@ -47,7 +14,7 @@ void log(int severity, const char *format, ...);
#ifdef __GNUC__
#define log_fn(severity, format, args...) \
- log((severity), __PRETTY_FUNCTION__ "(): " # format , ##args)
+ log((severity), "%s(): " format , __PRETTY_FUNCTION__ , ##args)
#else
#define log_fn log
#endif