Fix LINT, broken by a -Wformat warning in r320329 with PFS_DELEN being

changed from %d to a long-width type.

Use uintmax_t casting and %ju to futureproof the format string against
potential changes with either the #define or the implementation-specific
definition for offsetof(..).
This commit is contained in:
Enji Cooper 2017-06-27 17:01:46 +00:00
parent 1d6e811063
commit 6bfe453238
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320413

View File

@ -866,7 +866,7 @@ pfs_readdir(struct vop_readdir_args *va)
free(pfsent, M_IOV);
i++;
}
PFS_TRACE(("%d bytes", i * PFS_DELEN));
PFS_TRACE(("%ju bytes", (uintmax_t)(i * PFS_DELEN)));
PFS_RETURN (error);
}