dumpiov_upto: cast pointers to kernel_ureg_t instead of long

* util.c  (dumpiov_upto): Cast iovec.iov_base pointer to kernel_ureg_t
instead of long.
This commit is contained in:
Дмитрий Левин 2016-12-21 15:36:50 +00:00
parent aa350a2b97
commit 23cbf90c18

2
util.c
View File

@ -960,7 +960,7 @@ dumpiov_upto(struct tcb *tcp, int len, long addr, unsigned long data_size)
/* include the buffer number to make it easy to
* match up the trace with the source */
tprintf(" * %lu bytes in buffer %d\n", iov_len, i);
dumpstr(tcp, (long) iov_iov_base(i), iov_len);
dumpstr(tcp, (kernel_ureg_t) iov_iov_base(i), iov_len);
}
}
free(iov);