X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=stat.c;h=759bcef90adb6e7744882e2b76f342001de9ae4c;hp=28acc233870fea2fa9e29abd8d5664b2101e7b89;hb=1e72a886a3eb4d27a5a2c3d6706a1a6a0d10023a;hpb=eef02441621aa969f01a1a331e0215dd587d25af 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++) {