afsd: correct printf format mismatch in debugging printf
authorGarrett Wollman <wollman@csail.mit.edu>
Wed, 13 Aug 2014 06:20:02 +0000 (02:20 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Wed, 13 Aug 2014 15:14:08 +0000 (11:14 -0400)
commitf02beb8d644ec2a52bf21737a040321905a39e20
tree58807355a461e9cddbd52af0da8a8f16e48675e8
parent80f4939a3b9e1d48c03d0797a21c9e77a844cf7f
afsd: correct printf format mismatch in debugging printf

On platforms where size_t is unsigned int, the type of
cacheFiles * sizeof(AFSD_INO_T) is not an unsigned long as the format
string requires.  Casting cacheFiles to unsigned long ensures that the
result is at least unsigned long, although it will still be wrong if
any architecture makes size_t be long long.  Fixes build for FreeBSD
10 on i386.

Change-Id: Ifd124d81b16f53133293dd591f7f8cf2f7d3175a
Reviewed-on: http://gerrit.openafs.org/11384
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/afsd/afsd.c