]> The Tcpdump Group git mirrors - tcpdump/blobdiff - smbutil.c
DCCP: Fix printing "Timestamp" and "Timestamp Echo" options
[tcpdump] / smbutil.c
index a3a84b99fd1931132296ca0426f9c3148ae21ca9..0d64bd383ae21aa7d65eda0e2ff3f8583cd2ff74 100644 (file)
--- a/smbutil.c
+++ b/smbutil.c
@@ -318,8 +318,7 @@ smb_data_print(netdissect_options *ndo, const u_char *buf, u_int len)
     return;
 
 trunc:
-    ND_PRINT("\n");
-    ND_PRINT("WARNING: Short packet. Try increasing the snap length\n");
+    nd_print_trunc(ndo);
 }
 
 
@@ -815,8 +814,7 @@ smb_fdata1(netdissect_options *ndo,
     return(buf);
 
 trunc:
-    ND_PRINT("\n");
-    ND_PRINT("WARNING: Short packet. Try increasing the snap length\n");
+    nd_print_trunc(ndo);
     return(NULL);
 }