summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-01-28 02:16:06 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2012-01-28 02:16:06 +0100
commitea051f75331ee4c7a44d5449a2d136288314879a (patch)
treefdb0fd14c0dad58eb4da2fc2c48da3efdd099f81 /time.c
parent3af224c5cd8a64a6af3f875549ff821e2b5cb211 (diff)
downloadstrace-ea051f75331ee4c7a44d5449a2d136288314879a.tar.gz
strace-ea051f75331ee4c7a44d5449a2d136288314879a.tar.bz2
strace-ea051f75331ee4c7a44d5449a2d136288314879a.tar.xz
Fix nanosleep decoding: second argument was not shown after success
* time.c (sys_nanosleep): Fix bug - inverted is_restart_error() check. * syscall.c (is_restart_error): Remove redundant check. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'time.c')
-rw-r--r--time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time.c b/time.c
index 875d224..497be75 100644
--- a/time.c
+++ b/time.c
@@ -271,7 +271,7 @@ sys_nanosleep(struct tcb *tcp)
print_timespec(tcp, tcp->u_arg[0]);
tprints(", ");
} else {
- if (!tcp->u_arg[1] || is_restart_error(tcp))
+ if (!tcp->u_arg[1] || !is_restart_error(tcp))
print_timespec(tcp, tcp->u_arg[1]);
else
tprintf("%#lx", tcp->u_arg[1]);