]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-vqp.c
SLL: Remove two useless tests
[tcpdump] / print-vqp.c
index ab00a79961eb7d0044237fcdd7ba9fa3b8634ec2..0c481452ea675091674298757ddae3ee0b326ada 100644 (file)
@@ -188,7 +188,7 @@ vqp_print(netdissect_options *ndo, const u_char *pptr, u_int len)
        case VQP_OBJ_VLAN_NAME:
        case VQP_OBJ_VTP_DOMAIN:
        case VQP_OBJ_ETHERNET_PKT:
-            safeputs(ndo, tptr, vqp_obj_len);
+            (void)nd_printzp(ndo, tptr, vqp_obj_len, NULL);
             break;
             /* those objects have similar semantics - fall through */
        case VQP_OBJ_MAC_ADDRESS:
@@ -208,5 +208,5 @@ vqp_print(netdissect_options *ndo, const u_char *pptr, u_int len)
     }
     return;
 trunc:
-    ND_PRINT("\n\t[|VQP]");
+    nd_print_trunc(ndo);
 }