summaryrefslogtreecommitdiff
path: root/mem.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2009-11-04 17:08:34 +0100
committerAndreas Schwab <schwab@redhat.com>2009-11-04 17:10:25 +0100
commitb5600fc3df0453ba11f254a9b49add3ffbec9733 (patch)
tree3cb96cf36318e181d476e5b3cfd2e31885e997ce /mem.c
parentd45f0a66c1c60c9703c7fd0b826a6436e0adc17a (diff)
downloadstrace-b5600fc3df0453ba11f254a9b49add3ffbec9733.tar.gz
strace-b5600fc3df0453ba11f254a9b49add3ffbec9733.tar.bz2
strace-b5600fc3df0453ba11f254a9b49add3ffbec9733.tar.xz
Factor out printing of 64bit syscall argument
* defs.h (ALIGN64): Remove. (printllval): Declare. * util.c (printllval): Define. * file.c (sys_readahead): Use printllval. (sys_lseek64): Likewise. (sys_truncate64): Likewise. (sys_ftruncate64): Likewise. (sys_fadvise64): Likewise. (sys_fadvise64_64): Likewise. (sys_fallocate): Likewise. * io.c (sys_pread): Likewise. (sys_pwrite): Likewise. (sys_pread64): Likewise. (sys_pwrite64): Likewise. * mem.c (sys_mmap64): Likewise.
Diffstat (limited to 'mem.c')
-rw-r--r--mem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mem.c b/mem.c
index c922f07..9335217 100644
--- a/mem.c
+++ b/mem.c
@@ -318,7 +318,6 @@ struct tcb *tcp;
return 0;
#endif /* ALPHA */
#endif /* linux */
- ALIGN64 (tcp, 5); /* FreeBSD wierdies */
/* addr */
tprintf("%#lx, ", u_arg[0]);
@@ -337,7 +336,7 @@ struct tcb *tcp;
/* fd */
tprintf(", %ld, ", u_arg[4]);
/* offset */
- tprintf("%#llx", LONG_LONG(u_arg[5], u_arg[6]));
+ printllval(tcp, "%#llx", 5);
}
return RVAL_HEX;
}