svn commit: r320413 - head/sys/fs/pseudofs

Ngie Cooper ngie at FreeBSD.org
Tue Jun 27 17:01:47 UTC 2017


Author: ngie
Date: Tue Jun 27 17:01:46 2017
New Revision: 320413
URL: https://svnweb.freebsd.org/changeset/base/320413

Log:
  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(..).

Modified:
  head/sys/fs/pseudofs/pseudofs_vnops.c

Modified: head/sys/fs/pseudofs/pseudofs_vnops.c
==============================================================================
--- head/sys/fs/pseudofs/pseudofs_vnops.c	Tue Jun 27 16:48:05 2017	(r320412)
+++ head/sys/fs/pseudofs/pseudofs_vnops.c	Tue Jun 27 17:01:46 2017	(r320413)
@@ -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);
 }
 


More information about the svn-src-all mailing list