Update of /cvsroot/sysfence/sysfence/sys
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9234/sys
Modified Files:
log.c log.h
Log Message:
* start logging before parsing, to allow debug messages to appear
Index: log.h
===================================================================
RCS file: /cvsroot/sysfence/sysfence/sys/log.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- log.h 26 May 2004 17:30:42 -0000 1.1
+++ log.h 31 May 2004 14:09:08 -0000 1.2
@@ -17,7 +17,7 @@
#define LOGLINEBUF 256
#define LOGVARBUF 64
-void log_start (int rules);
+void log_start ();
void log_rulehit (sf_rule *rule);
void log_end ();
Index: log.c
===================================================================
RCS file: /cvsroot/sysfence/sysfence/sys/log.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- log.c 28 May 2004 23:25:18 -0000 1.2
+++ log.c 31 May 2004 14:09:08 -0000 1.3
@@ -55,7 +55,7 @@
switch (val.type) {
case INTEGER:
- snprintf (thisbuf, STRBUF, "%s = %ld", defbuf, *((long int *) val.ptr));
+ snprintf (thisbuf, STRBUF, "%s = %llu", defbuf, *((long long int *) val.ptr));
break;
case DOUBLE:
snprintf (thisbuf, STRBUF, "%s = %.2f", defbuf, *((double *) val.ptr));
@@ -78,13 +78,11 @@
} else return thisbuf;
}
-void log_start (int rules)
+void log_start ()
{
openlog ("sysfence",
LOG_NDELAY | LOG_PID | LOG_CONS,
LOG_DAEMON);
-
- syslog (LOG_INFO, "loaded %d rules", rules);
}
void log_rulehit (sf_rule *rule)
|