]> The Tcpdump Group git mirrors - tcpdump/blobdiff - smbutil.c
DCCP: Fix printing "Timestamp" and "Timestamp Echo" options
[tcpdump] / smbutil.c
index 65af3727c163a8041c03e39f08cbe7ef25a8d2fa..0d64bd383ae21aa7d65eda0e2ff3f8583cd2ff74 100644 (file)
--- a/smbutil.c
+++ b/smbutil.c
@@ -254,7 +254,7 @@ print_asc(netdissect_options *ndo,
 {
     u_int i;
     for (i = 0; i < len; i++)
-        safeputchar(ndo, EXTRACT_U_1(buf + i));
+        fn_print_char(ndo, EXTRACT_U_1(buf + i));
 }
 
 static const char *
@@ -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);
 }