Skip to content

Commit

Permalink
Fix strace or FUTEX_PRIVATE_FLAG
Browse files Browse the repository at this point in the history
FUTEX_PRIVATE_FLAG is a bit orred with an existing futex op,
not a distinct value.

Signed-off-by: Paul Brook <paul@codesourcery.com>
  • Loading branch information
Paul Brook committed Feb 19, 2010
1 parent 30a8cac commit 5f2243f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion linux-user/strace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1252,8 +1252,10 @@ if( cmd == val ) { \

int cmd = (int)tswap32(tflag);
#ifdef FUTEX_PRIVATE_FLAG
if (cmd == FUTEX_PRIVATE_FLAG)
if (cmd & FUTEX_PRIVATE_FLAG) {
gemu_log("FUTEX_PRIVATE_FLAG|");
cmd &= ~FUTEX_PRIVATE_FLAG;
}
#endif
print_op(FUTEX_WAIT)
print_op(FUTEX_WAKE)
Expand Down

0 comments on commit 5f2243f

Please sign in to comment.