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 <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2013-04-30 23:48:07 -04:00 committed by Dmitry V. Levin
parent bb3a0f7ad3
commit 6303f35779

2
util.c
View File

@ -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.