futex: use print_xlat
* futex.c [!FUTEX_OP_OPARG_SHIFT] (FUTEX_OP_OPARG_SHIFT): New macro constant. (SYS_FUNC(futex)): Use print_xlat for printing FUTEX_OP_OPARG_SHIFT named constant.
This commit is contained in:
parent
a465477fc7
commit
83c129f51c
9
futex.c
9
futex.c
@ -37,6 +37,9 @@
|
||||
#ifndef FUTEX_CLOCK_REALTIME
|
||||
# define FUTEX_CLOCK_REALTIME 256
|
||||
#endif
|
||||
#ifndef FUTEX_OP_OPARG_SHIFT
|
||||
# define FUTEX_OP_OPARG_SHIFT 8
|
||||
#endif
|
||||
|
||||
#include "xlat/futexops.h"
|
||||
#include "xlat/futexwakeops.h"
|
||||
@ -94,8 +97,10 @@ SYS_FUNC(futex)
|
||||
tprintf(", %u, ", val2);
|
||||
printaddr(uaddr2);
|
||||
tprints(", ");
|
||||
if ((val3 >> 28) & 8)
|
||||
tprints("FUTEX_OP_OPARG_SHIFT<<28|");
|
||||
if ((val3 >> 28) & FUTEX_OP_OPARG_SHIFT) {
|
||||
print_xlat(FUTEX_OP_OPARG_SHIFT);
|
||||
tprints("<<28|");
|
||||
}
|
||||
comment = printxval(futexwakeops, (val3 >> 28) & 0x7, NULL)
|
||||
? NULL : "FUTEX_OP_???";
|
||||
tprints("<<28");
|
||||
|
Loading…
Reference in New Issue
Block a user