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
|
#ifndef FUTEX_CLOCK_REALTIME
|
||||||
# define FUTEX_CLOCK_REALTIME 256
|
# define FUTEX_CLOCK_REALTIME 256
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef FUTEX_OP_OPARG_SHIFT
|
||||||
|
# define FUTEX_OP_OPARG_SHIFT 8
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "xlat/futexops.h"
|
#include "xlat/futexops.h"
|
||||||
#include "xlat/futexwakeops.h"
|
#include "xlat/futexwakeops.h"
|
||||||
@ -94,8 +97,10 @@ SYS_FUNC(futex)
|
|||||||
tprintf(", %u, ", val2);
|
tprintf(", %u, ", val2);
|
||||||
printaddr(uaddr2);
|
printaddr(uaddr2);
|
||||||
tprints(", ");
|
tprints(", ");
|
||||||
if ((val3 >> 28) & 8)
|
if ((val3 >> 28) & FUTEX_OP_OPARG_SHIFT) {
|
||||||
tprints("FUTEX_OP_OPARG_SHIFT<<28|");
|
print_xlat(FUTEX_OP_OPARG_SHIFT);
|
||||||
|
tprints("<<28|");
|
||||||
|
}
|
||||||
comment = printxval(futexwakeops, (val3 >> 28) & 0x7, NULL)
|
comment = printxval(futexwakeops, (val3 >> 28) & 0x7, NULL)
|
||||||
? NULL : "FUTEX_OP_???";
|
? NULL : "FUTEX_OP_???";
|
||||||
tprints("<<28");
|
tprints("<<28");
|
||||||
|
Loading…
Reference in New Issue
Block a user