[PATCH 3/7] Check HAVE_LONG_LONG_OFF_T when printing offset
H.J. Lu
hongjiu.lu at intel.com
Fri Feb 3 18:12:10 UTC 2012
Hi,
When HAVE_LONG_LONG_OFF_T is defined, we need to use %llu to print
offset.
H.J.
---
2012-02-02 H.J. Lu <hongjiu.lu at intel.com>
* io.c (sys_sendfile): Check HAVE_LONG_LONG_OFF_T when printing
offset.
diff --git a/io.c b/io.c
index acc5bb5..aad0719 100644
--- a/io.c
+++ b/io.c
@@ -355,7 +355,11 @@ sys_sendfile(struct tcb *tcp)
else if (umove(tcp, tcp->u_arg[2], &offset) < 0)
tprintf("%#lx", tcp->u_arg[2]);
else
+#ifdef HAVE_LONG_LONG_OFF_T
+ tprintf("[%llu]", offset);
+#else
tprintf("[%lu]", offset);
+#endif
tprintf(", %lu", tcp->u_arg[3]);
}
return 0;
--
1.7.6.5
More information about the Strace-devel
mailing list