Permalink
Browse files

Check HAVE_LONG_LONG_OFF_T when printing offset

2012-02-02  H.J. Lu  <hongjiu.lu@intel.com>

	* io.c (sys_sendfile): Check HAVE_LONG_LONG_OFF_T when printing
	offset.
  • Loading branch information...
1 parent 88f3efe commit e44eee563aa6dfe7c9d78137c35e67b96db8b6c7 @hjl-tools committed Feb 2, 2012
Showing with 9 additions and 0 deletions.
  1. +5 −0 ChangeLog.hjl
  2. +4 −0 io.c
View
@@ -1,5 +1,10 @@
2012-02-02 H.J. Lu <hongjiu.lu@intel.com>
+ * io.c (sys_sendfile): Check HAVE_LONG_LONG_OFF_T when printing
+ offset.
+
+2012-02-02 H.J. Lu <hongjiu.lu@intel.com>
+
* file.c (convertoldstat): Define only if HAVE_LONG_LONG_OFF_T
isn't defined.
(sys_oldstat): Likewise.
View
4 io.c
@@ -322,7 +322,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;

0 comments on commit e44eee5

Please sign in to comment.