From cf92f7aacbc9e3c828e6a1b68eed6a87d0cf88bd Mon Sep 17 00:00:00 2001 From: seyko Date: Tue, 12 May 2015 22:02:51 +0300 Subject: some -bench fixes print stats to stderr, not to stdout --- libtcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtcc.c') diff --git a/libtcc.c b/libtcc.c index 1266baf..fb78c37 100644 --- a/libtcc.c +++ b/libtcc.c @@ -2282,7 +2282,7 @@ PUB_FUNC void tcc_print_stats(TCCState *s, int64_t total_time) tt = 0.001; if (total_bytes < 1) total_bytes = 1; - printf("%d idents, %d lines, %d bytes, %0.3f s, %d lines/s, %0.1f MB/s\n", + fprintf(stderr, "%d idents, %d lines, %d bytes, %0.3f s, %d lines/s, %0.1f MB/s\n", tok_ident - TOK_IDENT, total_lines, total_bytes, tt, (int)(total_lines / tt), total_bytes / tt / 1000000.0); -- cgit v1.3.1