X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=iolog.c;h=975ce6f7a481c438025992f4b828b6d69378b290;hp=8a216b2572fe44d20d673a26a6a9dbac2effaf6f;hb=9973b0f961a57c19f885ffca05f86ae6ef85f8c7;hpb=67f28a8cf74bf64c1c35fde49a425d62bb143fa8 diff --git a/iolog.c b/iolog.c index 8a216b25..975ce6f7 100644 --- a/iolog.c +++ b/iolog.c @@ -692,7 +692,7 @@ void flush_hist_samples(FILE *f, int hist_coarseness, void *samples, for (i = 0; i < nr_samples; i++) { s = __get_sample(samples, log_offset, i); - io_u_plat = (unsigned int *) s->val; + io_u_plat = (unsigned int *) (uintptr_t) s->val; fprintf(f, "%lu, %u, %u, ", (unsigned long)s->time, io_sample_ddir(s), s->bs); for (j = 0; j < FIO_IO_U_PLAT_NR - stride; j += stride) {