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.
This commit is contained in:
Дмитрий Левин 2016-12-21 00:04:06 +00:00
parent a06073fbbb
commit ac68c7db14

View File

@ -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);