/* \summary: Syslog protocol printer */
/* specification: RFC 3164 (not RFC 5424) */
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include "netdissect-stdinc.h"
facility = (pri & SYSLOG_FACILITY_MASK) >> 3;
severity = pri & SYSLOG_SEVERITY_MASK;
- if (ndo->ndo_vflag < 1 )
- {
+ if (ndo->ndo_vflag < 1 ) {
ND_PRINT("SYSLOG %s.%s, length: %u",
tok2str(syslog_facility_values, "unknown (%u)", facility),
tok2str(syslog_severity_values, "unknown (%u)", severity),
* beautification to make it clear what was transmitted on the wire.
*/
if (len > msg_off)
- (void)nd_printn(ndo, pptr + msg_off, len - msg_off, NULL);
+ nd_printjn(ndo, pptr + msg_off, len - msg_off);
if (ndo->ndo_vflag > 1)
print_unknown_data(ndo, pptr, "\n\t", len);