stderr is not the right place to print a valid result of the program, use stdout. Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx> --- examples/send-zerocopy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/send-zerocopy.c b/examples/send-zerocopy.c index 19cf961..9725d0b 100644 --- a/examples/send-zerocopy.c +++ b/examples/send-zerocopy.c @@ -596,9 +596,9 @@ int main(int argc, char **argv) tsum = tsum / cfg_nr_threads; if (!tsum) { - fprintf(stderr, "The run is too short, can't gather stats\n"); + printf("The run is too short, can't gather stats\n"); } else { - fprintf(stderr, "packets=%llu (MB=%llu), rps=%llu (MB/s=%llu)\n", + printf("packets=%llu (MB=%llu), rps=%llu (MB/s=%llu)\n", packets, bytes >> 20, packets * 1000 / tsum, (bytes >> 20) * 1000 / tsum); -- 2.43.0