]> granicus.if.org Git - strace/commitdiff
2003-12-14 Anton Blanchard <anton@samba.org>
authorRoland McGrath <roland@redhat.com>
Tue, 13 Jan 2004 10:16:47 +0000 (10:16 +0000)
committerRoland McGrath <roland@redhat.com>
Tue, 13 Jan 2004 10:16:47 +0000 (10:16 +0000)
* file.c (sys_getdents64): Don't cast d_ino and d_off to unsigned long.
Use %llu formats for them.

file.c

diff --git a/file.c b/file.c
index 206a944a721b13e7c70dc5f6ed1ab0ae0b699873..67cbc03b4a4aa5409e11010241644cc69db8ed9b 100644 (file)
--- a/file.c
+++ b/file.c
@@ -2034,10 +2034,10 @@ struct tcb *tcp;
                struct dirent64 *d = (struct dirent64 *) &buf[i];
 #if defined(LINUX) || defined(SVR4)
                if (!abbrev(tcp)) {
-                       tprintf("%s{d_ino=%lu, d_off=%lu, ",
+                       tprintf("%s{d_ino=%llu, d_off=%llu, ",
                                i ? " " : "",
-                               (unsigned long)d->d_ino,
-                               (unsigned long)d->d_off);
+                               d->d_ino,
+                               d->d_off);
 #ifdef LINUX
                        tprintf("d_type=");
                        printxval(direnttypes, d->d_type, "DT_???");