]> granicus.if.org Git - strace/commitdiff
Fix decoding of pid_t argument of migrate_pages syscall
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 27 Apr 2016 22:08:21 +0000 (22:08 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 27 Apr 2016 22:09:41 +0000 (22:09 +0000)
* numa.c (SYS_FUNC(migrate_pages)): Print pid_t syscall
argument using %d format.

numa.c

diff --git a/numa.c b/numa.c
index 3beb0788686b4cb34f3ba23c1df0ff0c28d4f8ae..2def40ff718cf094ce6f64444a406955a0738b35 100644 (file)
--- a/numa.c
+++ b/numa.c
@@ -77,7 +77,7 @@ get_nodes(struct tcb *tcp, unsigned long ptr, unsigned long maxnodes, int err)
 
 SYS_FUNC(migrate_pages)
 {
-       tprintf("%ld, ", (long) (pid_t) tcp->u_arg[0]);
+       tprintf("%d, ", (int) tcp->u_arg[0]);
        get_nodes(tcp, tcp->u_arg[2], tcp->u_arg[1], 0);
        tprints(", ");
        get_nodes(tcp, tcp->u_arg[3], tcp->u_arg[1], 0);