From: Dmitry V. Levin Date: Wed, 27 Apr 2016 22:08:21 +0000 (+0000) Subject: Fix decoding of pid_t argument of migrate_pages syscall X-Git-Tag: v4.12~259 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45a3e460bc8a06c2f6e56bc8ba72a2d3a62e1e8d;p=strace Fix decoding of pid_t argument of migrate_pages syscall * numa.c (SYS_FUNC(migrate_pages)): Print pid_t syscall argument using %d format. --- diff --git a/numa.c b/numa.c index 3beb0788..2def40ff 100644 --- 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);