]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
pointers are not castable to unsigned int
authorBenjamin Kaduk <kaduk@mit.edu>
Thu, 6 Feb 2014 21:22:49 +0000 (16:22 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Tue, 9 Sep 2014 12:52:26 +0000 (08:52 -0400)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Perry Ruiter <pruiter@sinenomine.net>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit 758ec15f9391c296f1caa042385148f1a5e0bc84)

Change-Id: Ibe88c38d0563ac125486d0ae7f16882a7989ee98
Reviewed-on: http://gerrit.openafs.org/11402
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: D Brashear <shadow@your-file-system.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/afsd/afsd.c

index c4eb720cacbcb04b4bf203362a71cbd17385d5f4..2147330d84dda4cc1d495b2f5a546022ee40241c 100644 (file)
@@ -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