From: Dmitry V. Levin Date: Thu, 11 Feb 2016 02:42:36 +0000 (+0000) Subject: waitid: print pid argument as int X-Git-Tag: v4.12~568 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=591906cccba6e4ad80b431a593c8b4157071be68;p=strace waitid: print pid argument as int * wait.c (SYS_FUNC(waitid)): As the type of second syscall argument in the kernel is pid_t, print it as int. --- diff --git a/wait.c b/wait.c index 39badf27..fc760179 100644 --- a/wait.c +++ b/wait.c @@ -180,7 +180,8 @@ SYS_FUNC(waitid) { if (entering(tcp)) { printxval(waitid_types, tcp->u_arg[0], "P_???"); - tprintf(", %ld, ", tcp->u_arg[1]); + int pid = tcp->u_arg[1]; + tprintf(", %d, ", pid); } else { /* siginfo */ printsiginfo_at(tcp, tcp->u_arg[2]);