From: Francois-Xavier Le Bail Date: Wed, 4 Nov 2020 11:15:14 +0000 (+0100) Subject: Print the optional packet count (--count) to stdout instead of stderr X-Git-Tag: tcpdump-4.99-bp~70 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/a0e19c0caef95fdcbace674de91e7c181d3bc866 Print the optional packet count (--count) to stdout instead of stderr It is not an error, thus print it to stdout. [skip ci] --- diff --git a/tcpdump.c b/tcpdump.c index 658d8b34..6476a3d4 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -2636,7 +2636,7 @@ DIAG_ON_CLANG(assign-enum) while (ret != NULL); if (count_mode && RFileName != NULL) - fprintf(stderr, "%u packet%s\n", packets_captured, + fprintf(stdout, "%u packet%s\n", packets_captured, PLURAL_SUFFIX(packets_captured)); free(cmdbuf);