summaryrefslogtreecommitdiff
path: root/print-bt.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-05-02 17:15:04 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-05-04 13:47:49 +0200
commitba8936b39b0ce2ff02f3aeb307df4c27657652d8 (patch)
tree71f8f3b775d7adfb7b2be374c634f749525c10eb /print-bt.c
parentc45392de183543487bfebf52a5d2ccbeb9cef462 (diff)
downloadtcpdump-ba8936b39b0ce2ff02f3aeb307df4c27657652d8.tar.gz
Print truncations with nd_print_trunc() instead of tstr[] strings
Remove the tstr[] strings. Update the output of some tests accordingly. Moreover: Add or update some ndo_protocol fields.
Diffstat (limited to 'print-bt.c')
-rw-r--r--print-bt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/print-bt.c b/print-bt.c
index f8a0a565..049a0e78 100644
--- a/print-bt.c
+++ b/print-bt.c
@@ -31,7 +31,6 @@
#if defined(DLT_BLUETOOTH_HCI_H4_WITH_PHDR) && defined(HAVE_PCAP_BLUETOOTH_H)
#include <pcap/bluetooth.h>
-static const char tstr[] = " [|bt]";
#define BT_HDRLEN sizeof(pcap_bluetooth_h4_header)
/*
@@ -62,7 +61,7 @@ bt_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *
ND_DEFAULTPRINT(p, caplen);
trunc:
- ND_PRINT("%s", tstr);
+ nd_print_trunc(ndo);
return (BT_HDRLEN);
}
#endif