]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-print-64-20051117
authorJim Rees <rees@umich.edu>
Thu, 23 Mar 2006 16:43:28 +0000 (16:43 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 23 Mar 2006 16:43:28 +0000 (16:43 +0000)
On non-Windows use %llu for 64 bit printf.
Thanks to Brent Graveland for pointing this out.

(cherry picked from commit d3f9842bd4897b1b5c580858c3cb17326900548c)

src/venus/cmdebug.c

index 50312a80275169b9332f167d902b586f002dfa50..41a25a476212b2b41d9463afa57d1952996813a8 100644 (file)
@@ -399,8 +399,13 @@ PrintCacheEntries64(struct rx_connection *aconn, int aint32)
            printf("\n");
        }
 #ifdef AFS_64BIT_ENV
+#ifdef AFS_NT40_ENV
        printf("    %012I64d bytes  DV %012d  refcnt %05d\n", centry.Length,
               centry.DataVersion, centry.refCount);
+#else
+       printf("    %012llu bytes  DV %012d  refcnt %05d\n", centry.Length,
+              centry.DataVersion, centry.refCount);
+#endif
 #else
        printf("    %012d bytes  DV %012d  refcnt %05d\n", centry.Length,
               centry.DataVersion, centry.refCount);