]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-lmp.c
Fix spaces
[tcpdump] / print-lmp.c
index 6e3f9810fffe5d7b657714e0fca03228a357abef..6b28544c8ff866b7c131711ffa8ede4438945cba 100644 (file)
@@ -31,7 +31,6 @@
 #include "addrtoname.h"
 #include "gmpls.h"
 
-static const char tstr[] = " [|lmp]";
 
 /*
  * LMP common header
@@ -440,6 +439,7 @@ lmp_print(netdissect_options *ndo,
         uint32_t i;
     } bw;
 
+    ndo->ndo_protocol = "lmp";
     tptr=pptr;
     lmp_com_header = (const struct lmp_common_header *)pptr;
     ND_TCHECK_SIZE(lmp_com_header);
@@ -1133,11 +1133,5 @@ lmp_print(netdissect_options *ndo,
     }
     return;
 trunc:
-    ND_PRINT("%s", tstr);
+    nd_print_trunc(ndo);
 }
-/*
- * Local Variables:
- * c-style: whitesmith
- * c-basic-offset: 8
- * End:
- */