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  <[email protected]>

        * 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


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to