diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-10-05 09:33:34 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2018-10-05 09:35:31 +0200 |
commit | 466113cdb442c9feaaaa1c468a8645a5bc69a367 (patch) | |
tree | 4cd06e2de2a700434749abecab5cadcb08d56ec7 /tcpdump.c | |
parent | 8a54b2483b27c6bdaeaf3c25e33052b9df271859 (diff) | |
download | tcpdump-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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); } |