summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorlaforge <laforge>2001-02-04 10:15:19 +0000
committerlaforge <laforge>2001-02-04 10:15:19 +0000
commit7f43ed58ad00117fb42a2a9f26564ac2fce89cae (patch)
treee115a70dbfc0401ad5ed1c355e410c6d33a776f3 /include
parentb9f7e52d2508aa336aa18d05b422eaf640b28d82 (diff)
- fixes segfault bug when packet received but no interpreters registered (reported by Drori Ghiora)
- fixes logfile bug: wrong filename and line number displayed - fixes logfile bug: logfile is fflush()ed after each line (reported by Drori Ghiora)
Diffstat (limited to 'include')
-rw-r--r--include/ulogd/ulogd.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/ulogd/ulogd.h b/include/ulogd/ulogd.h
index b3468ce..1eb2320 100644
--- a/include/ulogd/ulogd.h
+++ b/include/ulogd/ulogd.h
@@ -1,6 +1,6 @@
#ifndef _ULOGD_H
#define _ULOGD_H
-/* ulogd, Version $Revision: 1.9 $
+/* ulogd, Version $Revision: 1.10 $
*
* userspace logging daemon for netfilter ULOG target
* of the linux 2.4 netfilter subsystem.
@@ -9,7 +9,7 @@
*
* this code is released under the terms of GNU GPL
*
- * $Id: ulogd.h,v 1.9 2000/11/16 21:15:30 laforge Exp $
+ * $Id: ulogd.h,v 1.10 2000/11/20 11:43:22 laforge Exp $
*/
#include <libipulog/libipulog.h>
@@ -131,7 +131,10 @@ void register_output(ulog_output_t *me);
ulog_iret_t *alloc_ret(const u_int16_t type, const char*);
/* write a message to the daemons' logfile */
-void ulogd_log(int level, const char *message, ...);
+void __ulogd_log(int level, char *file, int line, const char *message, ...);
+/* macro for logging including filename and line number */
+#define ulogd_log(level, format, ...) \
+ __ulogd_log(level, __FILE__, __LINE__, ## format)
/* backwards compatibility */
#define ulogd_error(format, args...) ulogd_log(ULOGD_ERROR, format, ## args)