From: Mike Frysinger Date: Wed, 1 May 2013 03:48:07 +0000 (-0400) Subject: printllval: handle s390x X-Git-Tag: v4.8~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6303f357793be8be7860cf257fed0efd427c0f98;p=strace printllval: handle s390x 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 --- diff --git a/util.c b/util.c index a7661a59..4e21d9f2 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.