summaryrefslogtreecommitdiff
path: root/print-syslog.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-01-07 11:47:30 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-01-07 13:36:41 +0100
commite2982e7f6f0b624a773ec5a58885ee80fab46d34 (patch)
tree52c8e511ccaff8ef09dc3337b213273865522162 /print-syslog.c
parent8ab5c3a4e75a3ce8da691cd6ca6a9945082827af (diff)
downloadtcpdump-e2982e7f6f0b624a773ec5a58885ee80fab46d34.tar.gz
Update ND_PRINT() as a variadic macro
Diffstat (limited to 'print-syslog.c')
-rw-r--r--print-syslog.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/print-syslog.c b/print-syslog.c
index 901c6f3a..1b02ff84 100644
--- a/print-syslog.c
+++ b/print-syslog.c
@@ -102,12 +102,12 @@ syslog_print(netdissect_options *ndo,
ND_TCHECK_1(pptr + msg_off);
}
if (EXTRACT_U_1(pptr + msg_off) != '>') {
- ND_PRINT((ndo, "%s", tstr));
+ ND_PRINT("%s", tstr);
return;
}
msg_off++;
} else {
- ND_PRINT((ndo, "%s", tstr));
+ ND_PRINT("%s", tstr);
return;
}
@@ -116,19 +116,19 @@ syslog_print(netdissect_options *ndo,
if (ndo->ndo_vflag < 1 )
{
- ND_PRINT((ndo, "SYSLOG %s.%s, length: %u",
+ ND_PRINT("SYSLOG %s.%s, length: %u",
tok2str(syslog_facility_values, "unknown (%u)", facility),
tok2str(syslog_severity_values, "unknown (%u)", severity),
- len));
+ len);
return;
}
- ND_PRINT((ndo, "SYSLOG, length: %u\n\tFacility %s (%u), Severity %s (%u)\n\tMsg: ",
+ ND_PRINT("SYSLOG, length: %u\n\tFacility %s (%u), Severity %s (%u)\n\tMsg: ",
len,
tok2str(syslog_facility_values, "unknown (%u)", facility),
facility,
tok2str(syslog_severity_values, "unknown (%u)", severity),
- severity));
+ severity);
/* print the syslog text in verbose mode */
for (; msg_off < len; msg_off++) {
@@ -142,5 +142,5 @@ syslog_print(netdissect_options *ndo,
return;
trunc:
- ND_PRINT((ndo, "%s", tstr));
+ ND_PRINT("%s", tstr);
}