[PATCH] printllval: handle s390x
Mike Frysinger
vapier at gentoo.org
Wed May 1 03:48:07 UTC 2013
This is a 64bit arch w/no personalities, so fix printing.
It can now trace a simple call like readahead:
$ cat test.c
main(){readahead(-1, (unsigned long long)1 << 50, 0);}
$ gcc test.c
$ ./strace -ereadahead ./a.out
readahead(-1, 1125899906842624, 0) = -1 EBADF (Bad file descriptor)
* util.c (printllval): Handle S390X define.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util.c b/util.c
index a7661a5..4e21d9f 100644
--- a/util.c
+++ b/util.c
@@ -201,7 +201,7 @@ printllval(struct tcb *tcp, const char *format, int arg_no)
tprintf(format, LONG_LONG(tcp->u_arg[arg_no], tcp->u_arg[arg_no + 1]));
arg_no += 2;
}
-#elif defined IA64 || defined ALPHA
+#elif defined IA64 || defined ALPHA || defined S390X
/* Technically, format expects "long long",
* but we supply "long". We expect that
* on this arch, they are the same.
--
1.8.2.1
More information about the Strace-devel
mailing list