From d392a89cc8c27946b3e4d7590fc0d56265f45a87 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Wed, 30 Dec 2015 10:45:22 +0100 Subject: [PATCH] benchmark: Make sure to print to stderr stdout can be used for data output ... Signed-off-by: Sylvain Munaut --- src/benchmark.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/benchmark.c b/src/benchmark.c index e2c14a6..91e2ce5 100644 --- a/src/benchmark.c +++ b/src/benchmark.c @@ -37,7 +37,8 @@ void benchmark_dump(void) for (j = 0; j < bc->enc_used; j++) total += bc->enc[j]; - printf("Codec %u (ENC): %llu cycles for %u frames => " + fprintf(stderr, + "Codec %u (ENC): %llu cycles for %u frames => " "%llu cycles/frame\n", i, total, bc->enc_used, total / bc->enc_used); } @@ -47,7 +48,8 @@ void benchmark_dump(void) for (j = 0; j < bc->dec_used; j++) total += bc->dec[j]; - printf("Codec %u (DEC): %llu cycles for %u frames => " + fprintf(stderr, + "Codec %u (DEC): %llu cycles for %u frames => " "%llu cycles/frame\n", i, total, bc->dec_used, total / bc->dec_used); }