]> granicus.if.org Git - strace/commitdiff
2003-03-04 Ulrich Drepper <drepper@redhat.com>
authorRoland McGrath <roland@redhat.com>
Wed, 5 Mar 2003 04:07:55 +0000 (04:07 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 5 Mar 2003 04:07:55 +0000 (04:07 +0000)
* process.c [LINUX] (sys_futex): Omit final if op is not FUTEX_WAIT.

process.c

index 8a36b6decd2565a7b78de4def9cfecb60be3a8e4..d691f10bd0bc07f4637be51961bae62afaeed42d 100644 (file)
--- a/process.c
+++ b/process.c
@@ -2629,8 +2629,11 @@ struct tcb *tcp;
     if (entering(tcp)) {
        tprintf("%p, ", (void *) tcp->u_arg[0]);
        printflags(futexops, tcp->u_arg[1]);
-       tprintf(", %ld, ", tcp->u_arg[2]);
-       printtv(tcp, tcp->u_arg[3]);
+       tprintf(", %ld", tcp->u_arg[2]);
+       if (tcp->u_arg[1] == FUTEX_WAIT) {
+               tprintf(", ");
+               printtv(tcp, tcp->u_arg[3]);
+       }
     }
     return 0;
 }