From: Stanislav Brabec Date: Mon, 10 Dec 2012 19:18:49 +0000 (+0100) Subject: Fix sys_semtimedop decoding on s390x X-Git-Tag: v4.8~201 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=beae4c7182d8204a0d9fa9db2295c42744f7f377;p=strace Fix sys_semtimedop decoding on s390x The s390 and s390x pass semtimedop arguments differently from other architectures. sys_semtimedop parser was fixed for s390 by commit v4.6-177-ge0f5fd8, and s390x requires the same fix. * linux/ipc.c (sys_semtimedop): Fix timespec decoding on s390x. Signed-off-by: Stanislav Brabec --- diff --git a/ipc.c b/ipc.c index 859ee282..0cd77506 100644 --- a/ipc.c +++ b/ipc.c @@ -327,7 +327,7 @@ int sys_semtimedop(struct tcb *tcp) if (indirect_ipccall(tcp)) { tprint_sembuf(tcp, tcp->u_arg[3], tcp->u_arg[1]); tprints(", "); -#if defined(S390) +#if defined(S390) || defined(S390X) printtv(tcp, tcp->u_arg[2]); #else printtv(tcp, tcp->u_arg[4]);