]> granicus.if.org Git - strace/commitdiff
Fix printing of invalid mode argument of mbind syscall
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 23:13:04 +0000 (23:13 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 16 May 2016 23:48:05 +0000 (23:48 +0000)
* numa.c (SYS_FUNC(mbind)): Print 3rd argument of syscall
using printxval_long.
* tests/mbind.c (main): Update.

numa.c
tests/mbind.c

diff --git a/numa.c b/numa.c
index db2c7fd8591219822316c5655d98b97fd8f33ce6..b58a8fa3fc258088f0a0bbc0fcd8960840019d6f 100644 (file)
--- a/numa.c
+++ b/numa.c
@@ -76,7 +76,7 @@ SYS_FUNC(mbind)
 {
        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]);
index 8c00cbfc9115aa449204bd954f82a118a4521e9e..b0f044d9f56c9fd461915e1429dcddb3576a96cf 100644 (file)
@@ -39,7 +39,7 @@ int
 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;