summaryrefslogtreecommitdiff
path: root/tcpdump.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-10-05 09:33:34 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2018-10-05 09:35:31 +0200
commit466113cdb442c9feaaaa1c468a8645a5bc69a367 (patch)
tree4cd06e2de2a700434749abecab5cadcb08d56ec7 /tcpdump.c
parent8a54b2483b27c6bdaeaf3c25e33052b9df271859 (diff)
downloadtcpdump-466113cdb442c9feaaaa1c468a8645a5bc69a367.tar.gz
Harmonize a message
s/capture size/snapshot length/ It's a follow-up to 8a54b2483b.
Diffstat (limited to 'tcpdump.c')
-rw-r--r--tcpdump.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tcpdump.c b/tcpdump.c
index 659a0903..7fcace9c 100644
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -2378,14 +2378,14 @@ DIAG_ON_CLANG(assign-enum)
(void)fprintf(stderr, "%s: ", program_name);
dlt = pcap_datalink(pd);
dlt_name = pcap_datalink_val_to_name(dlt);
+ (void)fprintf(stderr, "listening on %s", device);
if (dlt_name == NULL) {
- (void)fprintf(stderr, "listening on %s, link-type %u, capture size %d bytes\n",
- device, dlt, ndo->ndo_snaplen);
+ (void)fprintf(stderr, ", link-type %u", dlt);
} else {
- (void)fprintf(stderr, "listening on %s, link-type %s (%s), capture size %d bytes\n",
- device, dlt_name,
- pcap_datalink_val_to_description(dlt), ndo->ndo_snaplen);
+ (void)fprintf(stderr, ", link-type %s (%s)", dlt_name,
+ pcap_datalink_val_to_description(dlt));
}
+ (void)fprintf(stderr, ", snapshot length %d bytes\n", ndo->ndo_snaplen);
(void)fflush(stderr);
}