projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67f28a8
)
iolog: silence warning on pointer cast on 32-bit compiles
author
Jens Axboe
<axboe@fb.com>
Mon, 8 Aug 2016 17:32:34 +0000
(11:32 -0600)
committer
Jens Axboe
<axboe@fb.com>
Mon, 8 Aug 2016 17:32:34 +0000
(11:32 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
iolog.c
patch
|
blob
|
blame
|
history
diff --git
a/iolog.c
b/iolog.c
index 8a216b2572fe44d20d673a26a6a9dbac2effaf6f..975ce6f7a481c438025992f4b828b6d69378b290 100644
(file)
--- 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) {