afsd: squash inode format warning

Coerce the inode into an int, so we can predictably print it when we
print debug info.

Change-Id: I81533b66b632eb0fed3a9e37480feaf2fa92d510
Reviewed-on: http://gerrit.openafs.org/1720
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Andrew Deason 2010-04-08 17:22:35 -05:00 committed by Derrick Brashear
parent 269d7cc02a
commit d29a2443f0

View File

@ -1003,9 +1003,9 @@ doSweepAFSCache(int *vFilesFound,
printf("\tinode=%" AFS_INT64_FMT ", reclen=%d, name='%s'\n", currp->d_ino,
currp->d_reclen, currp->d_name);
#elif defined(AFS_DFBSD_ENV)
printf("\tinode=%d, name='%s'\n", currp->d_ino, currp->d_name);
printf("\tinode=%ld, name='%s'\n", (long)currp->d_ino, currp->d_name);
#else
printf("\tinode=%d, reclen=%d, name='%s'\n", currp->d_ino,
printf("\tinode=%ld, reclen=%d, name='%s'\n", (long)currp->d_ino,
currp->d_reclen, currp->d_name);
#endif
}