From: Eugene Syromyatnikov Date: Thu, 29 Sep 2016 12:56:12 +0000 (+0300) Subject: keyctl: use getarg_ull for printing generic arguments X-Git-Tag: v4.14~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f5278a7d94a5f052b8d4debde094fafb1f74f907;p=strace keyctl: use getarg_ull for printing generic arguments Otherwise it is erroneous on x32, for example. * keyctl.c (SYS_FUNC(keyctl)): Use "%#llx" conversion specifier and getarg_ull for fallback argument printing. --- diff --git a/keyctl.c b/keyctl.c index dc1d10e6..5271d0ba 100644 --- a/keyctl.c +++ b/keyctl.c @@ -301,9 +301,9 @@ SYS_FUNC(keyctl) break; default: - tprintf("%#lx, %#lx, %#lx, %#lx", - tcp->u_arg[1], tcp->u_arg[2], - tcp->u_arg[3], tcp->u_arg[4]); + tprintf("%#llx, %#llx, %#llx, %#llx", + getarg_ull(tcp, 1), getarg_ull(tcp, 2), + getarg_ull(tcp, 3), getarg_ull(tcp, 4)); break; }