summaryrefslogtreecommitdiff
path: root/mem.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2016-12-26 20:12:23 +0000
committerDmitry V. Levin <ldv@altlinux.org>2016-12-27 01:08:58 +0000
commitf91679316b606df351d85f11819df0b97bdfc493 (patch)
tree85ddd50939b2fa4623830d17e18b253d3c5d6501 /mem.c
parent835fb3c5f27374db0dcfadd66f5adec88bc05d2b (diff)
downloadstrace-f91679316b606df351d85f11819df0b97bdfc493.tar.gz
Introduce ANY_WORDSIZE_LESS_THAN_KERNEL_LONG macro
* defs.h (ANY_WORDSIZE_LESS_THAN_KERNEL_LONG): New macro. (truncate_klong_to_current_wordsize, truncate_kulong_to_current_wordsize): Use it. * mem.c (SYS_FUNC(old_mmap)): Likewise. * util.c (umoven, umovestr, dumpiov_upto): Likewise. * syscall.c (trace_syscall_exiting): Likewise.
Diffstat (limited to 'mem.c')
-rw-r--r--mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mem.c b/mem.c
index 6a541cfb6..40ed707af 100644
--- a/mem.c
+++ b/mem.c
@@ -94,7 +94,7 @@ print_mmap(struct tcb *tcp, kernel_ulong_t *u_arg, unsigned long long offset)
SYS_FUNC(old_mmap)
{
kernel_ulong_t u_arg[6];
-# ifndef current_klongsize
+# if ANY_WORDSIZE_LESS_THAN_KERNEL_LONG
/* We are here only in a 32-bit personality. */
unsigned int narrow_arg[6];
if (umove_or_printaddr(tcp, tcp->u_arg[0], &narrow_arg))