From 3dc1e5b28bc4d9b673fe81fc4884b1a621ffe9de Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 7 Feb 2013 12:56:09 +0100 Subject: [PATCH] stat: fix wrong type used for 32-bit compiles Signed-off-by: Jens Axboe --- stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stat.c b/stat.c index 28acc233..759bcef9 100644 --- a/stat.c +++ b/stat.c @@ -182,7 +182,7 @@ static unsigned int calc_clat_percentiles(unsigned int *io_u_plat, * Find and display the p-th percentile of clat */ static void show_clat_percentiles(unsigned int *io_u_plat, unsigned long nr, - fio_fp64_t *plist, uint64_t precision) + fio_fp64_t *plist, unsigned int precision) { unsigned int len, j = 0, minv, maxv; unsigned int *ovals; @@ -205,7 +205,7 @@ static void show_clat_percentiles(unsigned int *io_u_plat, unsigned long nr, log_info(" clat percentiles (usec):\n |"); } - snprintf(fmt, sizeof(fmt), "%%1.%luf", precision); + snprintf(fmt, sizeof(fmt), "%%1.%uf", precision); per_line = (80 - 7) / (precision + 14); for (j = 0; j < len; j++) { -- 2.25.1