diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2016-07-13 22:54:55 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2016-07-13 23:45:20 +0000 |
commit | 4ddbfcfb3cc2c6d5feb335a0b7055717b5ef7ec7 (patch) | |
tree | 617665688ae6ae1cbfa8a767009dfc6816d99c46 /io.c | |
parent | 0b2cf813d7dd838ef5c807acac3fbf6d8b35d176 (diff) | |
download | strace-4ddbfcfb3cc2c6d5feb335a0b7055717b5ef7ec7.tar.gz |
Print struct iovec as a regular structure
* io.c (print_iovec): Print names of iov_base and iov_len fields.
* tests/aio.c (main): Update expected output.
* tests/inet-cmsg.c (main): Likewise.
* tests/mmsg.c (main): Likewise.
* tests/msg_name.c (test_msg_name): Likewise.
* tests/preadv-pwritev.c (main): Likewise.
* tests/preadv2-pwritev2.c (main): Likewise.
* tests/preadv.c (main): Likewise.
* tests/pwritev.c (main): Likewise.
* tests/readv.c (main): Likewise.
* tests/recvmsg.c (main): Likewise.
* tests/vmsplice.c (main): Likewise.
* tests/scm_rights-fd.test: Likewise.
* tests/uio.expected: Likewise.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -77,7 +77,7 @@ print_iovec(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data) iov = elem_buf; } - tprints("{"); + tprints("{iov_base="); len = iov[1]; @@ -99,7 +99,7 @@ print_iovec(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data) break; } - tprintf(", %lu}", iov[1]); + tprintf(", iov_len=%lu}", iov[1]); return true; } |