[PATCH] Fix sys_ipc/sys_semtimedop decoding on s390x
Stanislav Brabec
sbrabec at suse.cz
Mon Dec 10 19:18:49 UTC 2012
The s390 and s390x passes semtimedop arguments differently. It was fixed
for s390 in commit e0f5fd8, but s390x is affected as well. See e0f5fd8
for more.
Signed-off-by: Stanislav Brabec <sbrabec at suse.cz>
---
ipc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ipc.c b/ipc.c
index 0bde1cf..f52fbe6 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[5]);
--
1.7.10.4
--
Best Regards / S pozdravem,
Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec at suse.cz
Lihovarská 1060/12 tel: +49 911 7405384547
190 00 Praha 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
More information about the Strace-devel
mailing list