From: Jim Rees Date: Thu, 17 Nov 2005 21:03:38 +0000 (+0000) Subject: print-64-20051117 X-Git-Tag: openafs-devel-1_5_0~196 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d3f9842bd4897b1b5c580858c3cb17326900548c;p=packages%2Fo%2Fopenafs.git print-64-20051117 On non-Windows use %llu for 64 bit printf. Thanks to Brent Graveland for pointing this out. --- diff --git a/src/venus/cmdebug.c b/src/venus/cmdebug.c index 4b16affa3..c112d5202 100644 --- a/src/venus/cmdebug.c +++ b/src/venus/cmdebug.c @@ -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, ¢ry64); if (code != RXGEN_OPCODE) return PrintCacheEntries64(aconn, aint32); else return PrintCacheEntries32(aconn, aint32); -#endif } int