Fix printing of invalid mode argument of mbind syscall
* numa.c (SYS_FUNC(mbind)): Print 3rd argument of syscall
using printxval_long.
* tests/mbind.c (main): Update.
diff --git a/numa.c b/numa.c
index db2c7fd..b58a8fa 100644
--- a/numa.c
+++ b/numa.c
@@ -76,7 +76,7 @@
{
printaddr(tcp->u_arg[0]);
tprintf(", %lu, ", tcp->u_arg[1]);
- printxval(policies, tcp->u_arg[2], "MPOL_???");
+ printxval_long(policies, tcp->u_arg[2], "MPOL_???");
tprints(", ");
print_nodemask(tcp, tcp->u_arg[3], tcp->u_arg[4]);
tprintf(", %lu, ", tcp->u_arg[4]);
diff --git a/tests/mbind.c b/tests/mbind.c
index 8c00cbf..b0f044d 100644
--- a/tests/mbind.c
+++ b/tests/mbind.c
@@ -39,7 +39,7 @@
main(void)
{
const unsigned long len = (unsigned long) 0xcafef00dbadc0ded;
- const unsigned long mode = (unsigned long) 0xdefaced00000003;
+ const unsigned long mode = 3;
const unsigned long nodemask = (unsigned long) 0xfacefeedfffffff1;
const unsigned long maxnode = (unsigned long) 0xdeadbeeffffffff2;
const unsigned long flags = -1UL;