X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3e3e6d2ef4c1b120077378fe32dc0a88ee81f38e..a8abce5c5e2dce2ba6dbccd5d3829da104b80f9c:/print-cdp.c diff --git a/print-cdp.c b/print-cdp.c index d77bf2cb..79d7046c 100644 --- a/print-cdp.c +++ b/print-cdp.c @@ -39,7 +39,6 @@ #include "extract.h" #include "nlpid.h" -static const char tstr[] = "[|cdp]"; #define CDP_HEADER_LEN 4 #define CDP_HEADER_VERSION_OFFSET 0 @@ -99,7 +98,7 @@ cdp_print(netdissect_options *ndo, ndo->ndo_protocol = "cdp"; if (caplen < CDP_HEADER_LEN) { - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); return; } @@ -279,7 +278,7 @@ cdp_print(netdissect_options *ndo, return; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); } /*