summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorJohn Hughes <john@Calva.COM>2002-05-23 11:48:58 +0000
committerJohn Hughes <john@Calva.COM>2002-05-23 11:48:58 +0000
commit38ae88d332acd9f86a30d58158e306d795d98977 (patch)
tree201388184b09bc5412119a83c5806e62001b6609 /io.c
parentcde80abad5fa4b2414d0177f228f65e2c7bdc6dd (diff)
downloadstrace-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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/io.c b/io.c
index 3f1022c..3bb7798 100644
--- a/io.c
+++ b/io.c
@@ -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;
}