]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
print-64-20051117
authorJim Rees <rees@umich.edu>
Thu, 17 Nov 2005 21:03:38 +0000 (21:03 +0000)
committerJim Rees <rees@umich.edu>
Thu, 17 Nov 2005 21:03:38 +0000 (21:03 +0000)
On non-Windows use %llu for 64 bit printf.
Thanks to Brent Graveland for pointing this out.

src/venus/cmdebug.c

index 4b16affa30b3e3ba262ce7fcbaa6de6af6bb099f..c112d520219b1919bb36aae004b39df180e97c56 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);
@@ -453,15 +458,11 @@ PrintCacheEntries(struct rx_connection *aconn, int aint32)
     register afs_int32 code;
     struct AFSDBCacheEntry64 centry64;
 
-#ifdef AFS_OBSD_ENV
-    return PrintCacheEntries32(aconn, aint32);
-#else
     code = RXAFSCB_GetCE64(aconn, 0, &centry64);
     if (code != RXGEN_OPCODE)
        return PrintCacheEntries64(aconn, aint32);
     else
        return PrintCacheEntries32(aconn, aint32);
-#endif
 }
 
 int