]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ldp.c
Travis CI: Reduce git clone depth
[tcpdump] / print-ldp.c
index 1bb0d6f9e433de0e49d31fb0ae7c4a2c048b58ae..351c1f81e55b2793b431d466d992ee7f666a5b01 100644 (file)
@@ -29,7 +29,6 @@
 #include "l2vpn.h"
 #include "af.h"
 
-static const char tstr[] = " [|ldp]";
 
 /*
  * ldp common header
@@ -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;
 }