commit | 591906cccba6e4ad80b431a593c8b4157071be68 | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Thu Feb 11 02:42:36 2016 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Thu Feb 11 03:06:17 2016 +0000 |
tree | d9da969dfa0c75bf27a7c9ccc34a07f76b26617a | |
parent | d3f17c642d9fdf5ea25941d6de7f26117bd89670 [diff] |
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 39badf2..fc76017 100644 --- a/wait.c +++ b/wait.c
@@ -180,7 +180,8 @@ { 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]);