X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/4d8d97abab5e770fead62652eacc2c56fd148fb1..db62b0176b7cbf3353182f0b0adfdea16c8a5baf:/print-syslog.c diff --git a/print-syslog.c b/print-syslog.c index b0e1c91a..095b7150 100644 --- a/print-syslog.c +++ b/print-syslog.c @@ -109,8 +109,7 @@ syslog_print(netdissect_options *ndo, 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), @@ -139,7 +138,7 @@ syslog_print(netdissect_options *ndo, * 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);