diff options
author | Roland McGrath <roland@redhat.com> | 2004-10-07 19:09:16 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2004-10-07 19:09:16 +0000 |
commit | 2fe2a3e124c10a958f8738d03df7c01cc283e531 (patch) | |
tree | 2812a52996fcb9fff79adc5633424a6ab35e0cfd /io.c | |
parent | 61b324bc39fa17878aba9ab8b76bdefcaaccdfec (diff) | |
download | strace-2fe2a3e124c10a958f8738d03df7c01cc283e531.tar.gz strace-2fe2a3e124c10a958f8738d03df7c01cc283e531.tar.bz2 strace-2fe2a3e124c10a958f8738d03df7c01cc283e531.tar.xz |
2004-10-07 Roland McGrath <roland@redhat.com>
* file.c (sys_llssek, sys_readahead, sys_fadvise64, sys_fadvise64_64):
Use LONG_LONG macro.
* io.c (sys_pread, sys_pwrite, sys_sendfile): Likewise.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -161,8 +161,7 @@ struct tcb *tcp; tprintf(", %lu, %ld", tcp->u_arg[2], tcp->u_arg[3]); #else tprintf(", %lu, %llu", tcp->u_arg[2], - (((unsigned long long) tcp->u_arg[4]) << 32 - | (unsigned) tcp->u_arg[3])); + LONG_LONG(tcp->u_arg[3], tcp->u_arg[4])); #endif } return 0; @@ -180,8 +179,7 @@ struct tcb *tcp; tprintf(", %lu, %ld", tcp->u_arg[2], tcp->u_arg[3]); #else tprintf(", %lu, %llu", tcp->u_arg[2], - (((unsigned long long) tcp->u_arg[4]) << 32 - | (unsigned) tcp->u_arg[3])); + LONG_LONG(tcp->u_arg[3], tcp->u_arg[4])); #endif } return 0; @@ -198,8 +196,8 @@ struct tcb *tcp; { if (entering(tcp)) { tprintf("%ld, %ld, %llu, %lu", tcp->u_arg[0], tcp->u_arg[1], - (((unsigned long long) tcp->u_arg[3]) << 32 | - (unsigned) tcp->u_arg[2]), tcp->u_arg[4]); + LONG_LONG(tcp->u_arg[2], tcp->u_arg[3]), + tcp->u_arg[4]); } else { off_t offset; |