summaryrefslogtreecommitdiff
path: root/src/common/log.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-01 20:41:47 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-01 20:41:47 +0000
commitce79bab7f1880136eb511195eb670c1cc06cbc69 (patch)
treedcf553311e269d3c4586b5caa8b47548ea903654 /src/common/log.h
parentfae20c21bfa1afa5ab604d1c21597e22cdad3122 (diff)
downloadtor-ce79bab7f1880136eb511195eb670c1cc06cbc69.tar.gz
tor-ce79bab7f1880136eb511195eb670c1cc06cbc69.zip
Split util into util (general utilities), container (smartlist and strmap), and compat (cross-platform compatability).
svn:r2640
Diffstat (limited to 'src/common/log.h')
-rw-r--r--src/common/log.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/common/log.h b/src/common/log.h
index 0e458142f2..55dabafaaa 100644
--- a/src/common/log.h
+++ b/src/common/log.h
@@ -15,6 +15,8 @@
* \brief Headers for log.c
*/
+#include "../common/compat.h"
+
#ifdef HAVE_SYSLOG_H
#include <syslog.h>
#define LOG_WARN LOG_WARNING
@@ -51,14 +53,6 @@
#define LOG_ERR 3
#endif
-/* magic to make GCC check for proper format strings. */
-#ifdef __GNUC__
-#define CHECK_PRINTF(formatIdx, firstArg) \
- __attribute__ ((format (printf, formatIdx, firstArg)))
-#else
-#define CHECK_PRINTF(formatIdx, firstArg)
-#endif
-
int parse_log_level(const char *level);
void add_stream_log(int severityMin, int severityMax, const char *name, FILE *stream);
int add_file_log(int severityMin, int severityMax, const char *filename);