summaryrefslogtreecommitdiff
path: root/print-sunrpc.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-sunrpc.c
parent8ab5c3a4e75a3ce8da691cd6ca6a9945082827af (diff)
downloadtcpdump-e2982e7f6f0b624a773ec5a58885ee80fab46d34.tar.gz
Update ND_PRINT() as a variadic macro
Diffstat (limited to 'print-sunrpc.c')
-rw-r--r--print-sunrpc.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/print-sunrpc.c b/print-sunrpc.c
index 239742bc..5aeab50a 100644
--- a/print-sunrpc.c
+++ b/print-sunrpc.c
@@ -189,26 +189,26 @@ sunrpc_print(netdissect_options *ndo, const u_char *bp,
switch (IP_V((const struct ip *)bp2)) {
case 4:
ip = (const struct ip *)bp2;
- ND_PRINT((ndo, "%s.%s > %s.%s: %d",
+ ND_PRINT("%s.%s > %s.%s: %d",
ipaddr_string(ndo, &ip->ip_src), srcid,
- ipaddr_string(ndo, &ip->ip_dst), dstid, length));
+ ipaddr_string(ndo, &ip->ip_dst), dstid, length);
break;
case 6:
ip6 = (const struct ip6_hdr *)bp2;
- ND_PRINT((ndo, "%s.%s > %s.%s: %d",
+ ND_PRINT("%s.%s > %s.%s: %d",
ip6addr_string(ndo, &ip6->ip6_src), srcid,
- ip6addr_string(ndo, &ip6->ip6_dst), dstid, length));
+ ip6addr_string(ndo, &ip6->ip6_dst), dstid, length);
break;
default:
- ND_PRINT((ndo, "%s.%s > %s.%s: %d", "?", srcid, "?", dstid, length));
+ ND_PRINT("%s.%s > %s.%s: %d", "?", srcid, "?", dstid, length);
break;
}
- ND_PRINT((ndo, " %s", tok2str(proc2str, " proc #%u",
- EXTRACT_BE_U_4(&rp->rm_call.cb_proc))));
+ ND_PRINT(" %s", tok2str(proc2str, " proc #%u",
+ EXTRACT_BE_U_4(&rp->rm_call.cb_proc)));
x = EXTRACT_BE_U_4(&rp->rm_call.cb_rpcvers);
if (x != 2)
- ND_PRINT((ndo, " [rpcver %u]", x));
+ ND_PRINT(" [rpcver %u]", x);
switch (EXTRACT_BE_U_4(&rp->rm_call.cb_proc)) {
@@ -218,10 +218,10 @@ sunrpc_print(netdissect_options *ndo, const u_char *bp,
case SUNRPC_PMAPPROC_CALLIT:
x = EXTRACT_BE_U_4(&rp->rm_call.cb_prog);
if (!ndo->ndo_nflag)
- ND_PRINT((ndo, " %s", progstr(x)));
+ ND_PRINT(" %s", progstr(x));
else
- ND_PRINT((ndo, " %u", x));
- ND_PRINT((ndo, ".%u", EXTRACT_BE_U_4(&rp->rm_call.cb_vers)));
+ ND_PRINT(" %u", x);
+ ND_PRINT(".%u", EXTRACT_BE_U_4(&rp->rm_call.cb_vers));
break;
}
}