diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2016-12-26 20:12:23 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2016-12-27 01:08:58 +0000 |
commit | f91679316b606df351d85f11819df0b97bdfc493 (patch) | |
tree | 85ddd50939b2fa4623830d17e18b253d3c5d6501 /mem.c | |
parent | 835fb3c5f27374db0dcfadd66f5adec88bc05d2b (diff) | |
download | strace-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |