X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/56e6581c34ceec5469b9f37c19b31a36b0256f3c..018b2b8c96259348efccbcf14d2480f07892353f:/print-ldp.c diff --git a/print-ldp.c b/print-ldp.c index 9890e44f..351c1f81 100644 --- a/print-ldp.c +++ b/print-ldp.c @@ -29,7 +29,6 @@ #include "l2vpn.h" #include "af.h" -static const char tstr[] = " [|ldp]"; /* * ldp common header @@ -443,7 +442,7 @@ ldp_tlv_print(netdissect_options *ndo, case LDP_FEC_MARTINI_IFPARM_DESC: ND_PRINT(": "); for (idx = 2; idx < vc_info_tlv_len; idx++) - safeputchar(ndo, EXTRACT_U_1(tptr + idx)); + fn_print_char(ndo, EXTRACT_U_1(tptr + idx)); break; case LDP_FEC_MARTINI_IFPARM_VCCV: @@ -536,7 +535,7 @@ ldp_tlv_print(netdissect_options *ndo, return(tlv_len+4); /* Type & Length fields not included */ trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); return 0; badtlv: @@ -690,6 +689,6 @@ ldp_pdu_print(netdissect_options *ndo, } return pdu_len+4; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); return 0; }