From: Francois-Xavier Le Bail Date: Mon, 31 Aug 2020 19:57:45 +0000 (+0200) Subject: Use more the nd_print_trunc() function X-Git-Tag: tcpdump-4.99-bp~258 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/f6bb0d6de291cfc26c28915578568a4ed616c60c Use more the nd_print_trunc() function --- diff --git a/print.c b/print.c index ee64843e..6e4cf893 100644 --- a/print.c +++ b/print.c @@ -403,7 +403,7 @@ pretty_print_packet(netdissect_options *ndo, const struct pcap_pkthdr *h, (ndo->ndo_if_printer)(ndo, h, sp); } else { /* A printer quit because the packet was truncated; report it */ - ND_PRINT(" [|%s]", ndo->ndo_protocol); + nd_print_trunc(ndo); } hdrlen = ndo->ndo_ll_hdr_len;