aboutsummaryrefslogtreecommitdiffstats
path: root/stats.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2007-12-03 19:34:31 -0500
committerJeff Garzik <jeff@garzik.org>2007-12-03 19:34:31 -0500
commit92ee2129949818c72e45bdde20180281584e87e7 (patch)
treedce1696191a450536abd38426127a600e42c9242 /stats.c
parentaa1b70b8dc02845e8bb9bea84b1f7ee2e4bfa20b (diff)
downloadrng-tools-92ee2129949818c72e45bdde20180281584e87e7.tar.gz
rng-tools-92ee2129949818c72e45bdde20180281584e87e7.tar.xz
rng-tools-92ee2129949818c72e45bdde20180281584e87e7.zip
Fix uint64_t/unsigned long long printf(3) warnings.
Diffstat (limited to 'stats.c')
-rw-r--r--stats.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/stats.c b/stats.c
index dbdac5d..86c908d 100644
--- a/stats.c
+++ b/stats.c
@@ -105,7 +105,8 @@ char *dump_stat_counter(char *buf, int size,
const char *msg, uint64_t value)
{
buf[size-1] = 0;
- snprintf(buf, size-1, "%s%s: %llu", stat_prefix, msg, value);
+ snprintf(buf, size-1, "%s%s: %llu", stat_prefix, msg,
+ (unsigned long long) value);
return buf;
}
@@ -120,7 +121,8 @@ char *dump_stat_stat(char *buf, int size,
buf[size-1] = 0;
snprintf(buf, size-1, "%s%s: (min=%llu; avg=%.3f; max=%llu)%s",
- stat_prefix, msg, stat->min, avg, stat->max, unit);
+ stat_prefix, msg, (unsigned long long) stat->min, avg,
+ (unsigned long long) stat->max, unit);
return buf;
}