diff options
author | John Hughes <john@Calva.COM> | 2002-05-23 11:48:58 +0000 |
---|---|---|
committer | John Hughes <john@Calva.COM> | 2002-05-23 11:48:58 +0000 |
commit | 38ae88d332acd9f86a30d58158e306d795d98977 (patch) | |
tree | 201388184b09bc5412119a83c5806e62001b6609 /io.c | |
parent | cde80abad5fa4b2414d0177f228f65e2c7bdc6dd (diff) | |
download | strace-38ae88d332acd9f86a30d58158e306d795d98977.tar.gz strace-38ae88d332acd9f86a30d58158e306d795d98977.tar.bz2 strace-38ae88d332acd9f86a30d58158e306d795d98977.tar.xz |
Improve tracing of timod ioctls
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -332,8 +332,11 @@ struct tcb *tcp; ioctl_decode(tcp, tcp->u_arg[1], tcp->u_arg[2]); } else { - if (ioctl_decode(tcp, tcp->u_arg[1], tcp->u_arg[2]) == 0) + int ret; + if (!(ret = ioctl_decode(tcp, tcp->u_arg[1], tcp->u_arg[2]))) tprintf(", %#lx", tcp->u_arg[2]); + else + return ret - 1; } return 0; } |