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.8.0_pre1^2~786 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=758ec15f9391c296f1caa042385148f1a5e0bc84;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. Change-Id: I18c42df0bf03c2d0e9e7c757445b8ff0f616c671 Reviewed-on: http://gerrit.openafs.org/10820 Tested-by: BuildBot Reviewed-by: Perry Ruiter Reviewed-by: Jeffrey Altman --- diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index abe36c482..ed5b02822 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -2086,7 +2086,7 @@ afsd_run(void) exit(1); } 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