From: Benjamin Kaduk Date: Thu, 6 Feb 2014 21:22:49 +0000 (-0500) Subject: pointers are not castable to unsigned int X-Git-Tag: upstream/1.6.10^2~6 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5b6286cdc5eadeb9575bcfb86685393b30cfa4d3;p=packages%2Fo%2Fopenafs.git pointers are not castable to unsigned int When printing a pointer's value for debugging purposes, use the dedicated printf format specifier for pointers instead of assuming that unsigned int ('x') is good enough. Found by clang on FreeBSD 10.0. Reviewed-on: http://gerrit.openafs.org/10820 Tested-by: BuildBot Reviewed-by: Perry Ruiter Reviewed-by: Jeffrey Altman (cherry picked from commit 758ec15f9391c296f1caa042385148f1a5e0bc84) Change-Id: Ibe88c38d0563ac125486d0ae7f16882a7989ee98 Reviewed-on: http://gerrit.openafs.org/11402 Reviewed-by: Benjamin Kaduk Tested-by: BuildBot Reviewed-by: Chas Williams - CONTRACTOR Reviewed-by: Andrew Deason Reviewed-by: D Brashear Reviewed-by: Stephan Wiesand --- diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index c4eb720ca..2147330d8 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -2120,7 +2120,7 @@ afsd_run(void) } memset(inode_for_V, '\0', (cacheFiles * sizeof(AFSD_INO_T))); if (afsd_debug) - printf("%s: %d inode_for_V entries at 0x%x, %lu bytes\n", rn, + printf("%s: %d inode_for_V entries at %p, %lu bytes\n", rn, cacheFiles, inode_for_V, (cacheFiles * sizeof(AFSD_INO_T))); #endif