stat: fix wrong type used for 32-bit compiles
authorJens Axboe <axboe@kernel.dk>
Thu, 7 Feb 2013 11:56:09 +0000 (12:56 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 7 Feb 2013 11:56:09 +0000 (12:56 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
stat.c

diff --git a/stat.c b/stat.c
index 28acc233870fea2fa9e29abd8d5664b2101e7b89..759bcef90adb6e7744882e2b76f342001de9ae4c 100644 (file)
--- 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++) {