aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-05-12 22:02:51 +0300
committerseyko <seyko2@gmail.com>2015-05-12 22:02:51 +0300
commitcf92f7aacbc9e3c828e6a1b68eed6a87d0cf88bd (patch)
treeba6a1ea0a69c57391eab4e40f09947e2ed96c4c0 /libtcc.c
parent06e0753fce99d4b845c054ce343f49149522ff2c (diff)
downloadtinycc-cf92f7aacbc9e3c828e6a1b68eed6a87d0cf88bd.tar.gz
tinycc-cf92f7aacbc9e3c828e6a1b68eed6a87d0cf88bd.tar.bz2
some -bench fixes
print stats to stderr, not to stdout
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c2
1 files changed, 1 insertions, 1 deletions
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);