From: Dmitry V. Levin Date: Wed, 21 Dec 2016 00:04:06 +0000 (+0000) Subject: msghdr: cast pointers to kernel_ureg_t instead of unsigned long X-Git-Tag: v4.16~299 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac68c7db140f76fc4cfce0801433d7cc11458fdb;p=strace msghdr: cast pointers to kernel_ureg_t instead of unsigned long * msghdr.c (print_struct_msghdr): Cast msghdr.msg_iov and msghdr.msg_control pointers to kernel_ureg_t instead of unsigned long. --- diff --git a/msghdr.c b/msghdr.c index 2f28a0a6..8c6b680c 100644 --- a/msghdr.c +++ b/msghdr.c @@ -352,10 +352,10 @@ print_struct_msghdr(struct tcb *tcp, const struct msghdr *msg, tprints(", msg_iov="); tprint_iov_upto(tcp, (unsigned long) msg->msg_iovlen, - (unsigned long) msg->msg_iov, decode, data_size); + (kernel_ureg_t) msg->msg_iov, decode, data_size); tprintf(", msg_iovlen=%lu", (unsigned long) msg->msg_iovlen); - decode_msg_control(tcp, (unsigned long) msg->msg_control, + decode_msg_control(tcp, (kernel_ureg_t) msg->msg_control, msg->msg_controllen); tprintf(", msg_controllen=%lu", (unsigned long) msg->msg_controllen);