From: Dmitry V. Levin Date: Wed, 21 Dec 2016 15:36:50 +0000 (+0000) Subject: dumpiov_upto: cast pointers to kernel_ureg_t instead of long X-Git-Tag: v4.16~248 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23cbf90c18d065d299e55f44ed87ad08961fe7c6;p=strace 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. --- diff --git a/util.c b/util.c index 482dafb2..ff65e8ad 100644 --- a/util.c +++ b/util.c @@ -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);