summaryrefslogtreecommitdiff
path: root/src/common/log.h
diff options
context:
space:
mode:
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);