Check HAVE_LONG_LONG_OFF_T when printing offset

When HAVE_LONG_LONG_OFF_T is defined, we need to use %llu to print
offset.

* io.c (sys_sendfile): Check HAVE_LONG_LONG_OFF_T when printing
offset.
This commit is contained in:
H.J. Lu 2012-02-03 10:12:10 -08:00 committed by Dmitry V. Levin
parent a13b3fea4f
commit 6ca2610cee

4
io.c
View File

@ -379,7 +379,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;