X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/56e6581c34ceec5469b9f37c19b31a36b0256f3c..d6dc7b3ae163fa1e14b47dd23b01bd5006748b87:/print-arp.c diff --git a/print-arp.c b/print-arp.c index af553b40..034a0566 100644 --- a/print-arp.c +++ b/print-arp.c @@ -34,7 +34,6 @@ #include "ethertype.h" #include "extract.h" -static const char tstr[] = "[|ARP]"; /* * Address Resolution Protocol. @@ -266,7 +265,7 @@ atmarp_print(netdissect_options *ndo, op = ATMOP(ap); if (!ND_TTEST_LEN(aar_tpa(ap), ATMTPROTO_LEN(ap))) { - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); ND_DEFAULTPRINT((const u_char *)ap, length); return; } @@ -349,7 +348,7 @@ atmarp_print(netdissect_options *ndo, return; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); } void @@ -386,7 +385,7 @@ arp_print(netdissect_options *ndo, } if (!ND_TTEST_LEN(TPA(ap), PROTO_LEN(ap))) { - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); ND_DEFAULTPRINT((const u_char *)ap, length); return; } @@ -469,5 +468,5 @@ arp_print(netdissect_options *ndo, return; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); }