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.
This commit is contained in:
Дмитрий Левин 2016-02-11 02:42:36 +00:00
parent d3f17c642d
commit 591906cccb

3
wait.c
View File

@ -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]);