]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-syslog.c
Put "{" at end of line with "if" to keep a consistent style
[tcpdump] / print-syslog.c
index b0e1c91aa78457ebdc5b560900417d5be393d112..095b715007a99a1697afccb71528016bfd99456b 100644 (file)
@@ -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);