* FOR A PARTICULAR PURPOSE.
*/
-#ifndef lint
-static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/print-syslog.c,v 1.1 2004-10-29 11:42:53 hannes Exp $";
-#endif
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "interface.h"
#include "extract.h"
+static const char tstr[] = "[|syslog]";
+
/*
* tokenlists and #defines taken from Ethereal - Network traffic analyzer
TCHECK2(*(pptr+msg_off), 1);
}
if (*(pptr+msg_off) != '>') {
- printf("[|syslog]");
+ printf("%s", tstr);
return;
}
msg_off++;
} else {
- printf("[|syslog]");
+ printf("%s", tstr);
return;
}
/* print the syslog text in verbose mode */
for (; msg_off < len; msg_off++) {
TCHECK2(*(pptr+msg_off), 1);
- safeputchar(*(pptr+msg_off));
+ safeputchar(gndo, *(pptr + msg_off));
}
if (vflag > 1)
- print_unknown_data(pptr,"\n\t",len);
+ print_unknown_data(gndo,pptr,"\n\t",len);
return;
trunc:
- printf("[|syslog]");
+ printf("%s", tstr);
}