diff options
author | Enji Cooper <ngie@FreeBSD.org> | 2017-06-27 17:01:46 +0000 |
---|---|---|
committer | Enji Cooper <ngie@FreeBSD.org> | 2017-06-27 17:01:46 +0000 |
commit | 6bfe453238d3626fb99e62205646e74fd442d789 (patch) | |
tree | c75095c9902f970cb91684391b2092bb0ae523c3 /sys/fs/pseudofs | |
parent | 1d6e8110635a28e6b8bfc5e7463efaeed20b191a (diff) | |
download | src-6bfe453238d3626fb99e62205646e74fd442d789.tar.gz src-6bfe453238d3626fb99e62205646e74fd442d789.zip |
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(..).
Notes
Notes:
svn path=/head/; revision=320413
Diffstat (limited to 'sys/fs/pseudofs')
-rw-r--r-- | sys/fs/pseudofs/pseudofs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/pseudofs/pseudofs_vnops.c b/sys/fs/pseudofs/pseudofs_vnops.c index 7a9ec7b5e7f8..1c2dc6988d7a 100644 --- a/sys/fs/pseudofs/pseudofs_vnops.c +++ b/sys/fs/pseudofs/pseudofs_vnops.c @@ -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); } |