diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2016-12-26 00:37:18 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2016-12-26 10:43:04 +0000 |
commit | 1d5bb61c49a04afe81f6544f8bb1a7c68e34e259 (patch) | |
tree | f5b41f453dcf6fead12ebc418e2acc30836e36b2 /kexec.c | |
parent | 11aa97bfba59f709a34b5477ce2cc67cd81ee788 (diff) | |
download | strace-1d5bb61c49a04afe81f6544f8bb1a7c68e34e259.tar.gz |
Print kernel_ureg_t and kernel_scno_t using dedicated format strings
Prepare for the change of kernel_ureg_t and kernel_scno_t from
unsigned long to kernel_ulong_t.
* defs.h (PRI_krd, PRI_kru, PRI_krx): New temporary macros.
All users updated.
Diffstat (limited to 'kexec.c')
-rw-r--r-- | kexec.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -55,9 +55,9 @@ print_seg(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data) tprints("{buf="); printaddr(seg[0]); - tprintf(", bufsz=%lu, mem=", seg[1]); + tprintf(", bufsz=%" PRI_kru ", mem=", seg[1]); printaddr(seg[2]); - tprintf(", memsz=%lu}", seg[3]); + tprintf(", memsz=%" PRI_kru "}", seg[3]); return true; } @@ -82,7 +82,7 @@ SYS_FUNC(kexec_load) { /* entry, nr_segments */ printaddr(tcp->u_arg[0]); - tprintf(", %lu, ", tcp->u_arg[1]); + tprintf(", %" PRI_kru ", ", tcp->u_arg[1]); /* segments */ print_kexec_segments(tcp, tcp->u_arg[2], tcp->u_arg[1]); |