From: Dmitry V. Levin Date: Mon, 6 Jun 2016 21:25:36 +0000 (+0000) Subject: Fix decoding of pid_t argument of prlimit64 syscall X-Git-Tag: v4.13~171 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b50623bd589baa95b97309ae868f9666845f618e;p=strace Fix decoding of pid_t argument of prlimit64 syscall * resource.c (SYS_FUNC(prlimit64)): Print pid_t syscall argument using %d format. --- diff --git a/resource.c b/resource.c index 9aacfbe4..475afc26 100644 --- a/resource.c +++ b/resource.c @@ -142,7 +142,7 @@ SYS_FUNC(setrlimit) SYS_FUNC(prlimit64) { if (entering(tcp)) { - tprintf("%ld, ", tcp->u_arg[0]); + tprintf("%d, ", (int) tcp->u_arg[0]); printxval(resources, tcp->u_arg[1], "RLIMIT_???"); tprints(", "); print_rlimit64(tcp, tcp->u_arg[2]);