Factor out printing of 64bit syscall argument
* defs.h (ALIGN64): Remove.
(printllval): Declare.
* util.c (printllval): Define.
* file.c (sys_readahead): Use printllval.
(sys_lseek64): Likewise.
(sys_truncate64): Likewise.
(sys_ftruncate64): Likewise.
(sys_fadvise64): Likewise.
(sys_fadvise64_64): Likewise.
(sys_fallocate): Likewise.
* io.c (sys_pread): Likewise.
(sys_pwrite): Likewise.
(sys_pread64): Likewise.
(sys_pwrite64): Likewise.
* mem.c (sys_mmap64): Likewise.
diff --git a/mem.c b/mem.c
index c922f07..9335217 100644
--- a/mem.c
+++ b/mem.c
@@ -318,7 +318,6 @@
return 0;
#endif /* ALPHA */
#endif /* linux */
- ALIGN64 (tcp, 5); /* FreeBSD wierdies */
/* addr */
tprintf("%#lx, ", u_arg[0]);
@@ -337,7 +336,7 @@
/* fd */
tprintf(", %ld, ", u_arg[4]);
/* offset */
- tprintf("%#llx", LONG_LONG(u_arg[5], u_arg[6]));
+ printllval(tcp, "%#llx", 5);
}
return RVAL_HEX;
}