Date: Thu, 26 Feb 2015 21:13:34 +0000 (UTC) From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r279333 - in user/dchagin/lemul/sys: fs/pseudofs modules/pseudofs Message-ID: <201502262113.t1QLDY9N022090@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dchagin Date: Thu Feb 26 21:13:33 2015 New Revision: 279333 URL: https://svnweb.freebsd.org/changeset/base/279333 Log: Hide vfs.pfs.trace variable if it is not used. Modified: user/dchagin/lemul/sys/fs/pseudofs/pseudofs.c user/dchagin/lemul/sys/modules/pseudofs/Makefile Modified: user/dchagin/lemul/sys/fs/pseudofs/pseudofs.c ============================================================================== --- user/dchagin/lemul/sys/fs/pseudofs/pseudofs.c Thu Feb 26 21:12:22 2015 (r279332) +++ user/dchagin/lemul/sys/fs/pseudofs/pseudofs.c Thu Feb 26 21:13:33 2015 (r279333) @@ -52,9 +52,11 @@ static MALLOC_DEFINE(M_PFSNODES, "pfs_no SYSCTL_NODE(_vfs, OID_AUTO, pfs, CTLFLAG_RW, 0, "pseudofs"); +#ifdef PSEUDOFS_TRACE int pfs_trace; SYSCTL_INT(_vfs_pfs, OID_AUTO, trace, CTLFLAG_RW, &pfs_trace, 0, "enable tracing of pseudofs vnode operations"); +#endif #if PFS_FSNAMELEN != MFSNAMELEN #error "PFS_FSNAMELEN is not equal to MFSNAMELEN" Modified: user/dchagin/lemul/sys/modules/pseudofs/Makefile ============================================================================== --- user/dchagin/lemul/sys/modules/pseudofs/Makefile Thu Feb 26 21:12:22 2015 (r279332) +++ user/dchagin/lemul/sys/modules/pseudofs/Makefile Thu Feb 26 21:13:33 2015 (r279333) @@ -23,4 +23,10 @@ EXPORT_SYMS= pfs_mount \ pfs_enable \ pfs_destroy +.if !defined(KERNBUILDDIR) +.if defined(PSEUDOFS_TRACE) +CFLAGS+=-DPSEUDOFS_TRACE +.endif +.endif + .include <bsd.kmod.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502262113.t1QLDY9N022090>