[PATCH 08/15] process_vm: Print pid argument as int
Eugene Syromyatnikov
evgsyr at gmail.com
Sat Oct 15 01:25:38 UTC 2016
* process_vm.c (SYS_FUNC(process_vm_readv),
SYS_FUNC(process_vm_writev)): change conversion specifier for pid
argument from "%ld" to "%d".
---
process_vm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/process_vm.c b/process_vm.c
index 0a9dcd2..03e7594 100644
--- a/process_vm.c
+++ b/process_vm.c
@@ -32,7 +32,7 @@ SYS_FUNC(process_vm_readv)
{
if (entering(tcp)) {
/* arg 1: pid */
- tprintf("%ld, ", tcp->u_arg[0]);
+ tprintf("%d, ", (int) tcp->u_arg[0]);
} else {
/* arg 2: local iov */
if (syserror(tcp)) {
@@ -60,7 +60,7 @@ SYS_FUNC(process_vm_readv)
SYS_FUNC(process_vm_writev)
{
/* arg 1: pid */
- tprintf("%ld, ", tcp->u_arg[0]);
+ tprintf("%d, ", (int) tcp->u_arg[0]);
/* arg 2: local iov */
tprint_iov(tcp, tcp->u_arg[2], tcp->u_arg[1], IOV_DECODE_STR);
/* arg 3: local iovcnt */
--
1.7.10.4
More information about the Strace-devel
mailing list