mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
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 <buildbot@rampaginggeek.com> Reviewed-by: Perry Ruiter <pruiter@sinenomine.net> Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
This commit is contained in:
parent
a52346ae50
commit
758ec15f93
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user