]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-udld.c
Fix spaces
[tcpdump] / print-udld.c
index a9ada9e47044be6537d91376a90d82d755652c87..224d482556381f76d627f2d81cc2d4e063fdd508 100644 (file)
@@ -28,7 +28,6 @@
 #include "netdissect.h"
 #include "extract.h"
 
-static const char tstr[] = " [|udld]";
 
 #define UDLD_HEADER_LEN                        4
 #define UDLD_DEVICE_ID_TLV             0x0001
@@ -94,7 +93,7 @@ static const struct tok udld_flags_values[] = {
 #define        UDLD_EXTRACT_OPCODE(x) ((x)&0x1f)
 
 void
-udld_print (netdissect_options *ndo, const u_char *pptr, u_int length)
+udld_print(netdissect_options *ndo, const u_char *pptr, u_int length)
 {
     int code, type, len;
     const u_char *tptr;
@@ -188,5 +187,5 @@ invalid:
     ND_PRINT("%s", istr);
     return;
 trunc:
-    ND_PRINT("%s", tstr);
+    nd_print_trunc(ndo);
 }