From 466113cdb442c9feaaaa1c468a8645a5bc69a367 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Fri, 5 Oct 2018 09:33:34 +0200 Subject: Harmonize a message s/capture size/snapshot length/ It's a follow-up to 8a54b2483b. --- tcpdump.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tcpdump.c') 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); } -- cgit v1.2.1