summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-09-21 11:39:17 +0200
committerJustus Winter <justus@gnupg.org>2016-09-21 11:39:17 +0200
commite886674e0b1a85c51ac83ab982e813994ea0314b (patch)
tree7b8daf92b0c49ba3a6427d79e710cd4f50a10de0
parent58dedd2cc54d59875b114d4edcadd6bd589ff37c (diff)
Print stats to stderrHEADmaster
-rw-r--r--main.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/main.c b/main.c
index 4c3b135..e36405b 100644
--- a/main.c
+++ b/main.c
@@ -96,11 +96,12 @@ void
print_stats (const char *id, size_t n, struct timeval *tv)
{
double duration = tv->tv_sec + (tv->tv_usec / 1000000.);
- printf ("% 10s: % 3is%06ius\t%fns\t%9.3f (1/s)\n",
- id,
- (int) tv->tv_sec, (int) tv->tv_usec,
- 1000000000. * duration / n,
- n / duration);
+ fprintf (stderr,
+ "% 10s: % 3is%06ius\t%fns\t%9.3f (1/s)\n",
+ id,
+ (int) tv->tv_sec, (int) tv->tv_usec,
+ 1000000000. * duration / n,
+ n / duration);
}
/* Options. */