diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2024-10-18 05:52:34 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2024-10-18 05:52:34 +0000 |
commit | 7d55acb1ca734026853e990296ece1ab2b57ab40 (patch) | |
tree | 44d514ff2b6525710a31fa723598e7919ea1fd61 /sys/nfs | |
parent | b4d60a88ceb42d3e8856a125bd4fc26c05d3d82e (diff) |
Put the bowels of the various VOP_PRINT routines under
defined(DEBUG) || defined(DIAGNOSTIC) || defined(VFSLCKDEBUG)
as they won't be used otherwise.
Shaves a few bytes off installation kernels.
ok kn@ semarie@
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_vnops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index b9c8230e54d..2a2b61d4668 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vnops.c,v 1.204 2024/09/18 05:21:19 jsg Exp $ */ +/* $OpenBSD: nfs_vnops.c,v 1.205 2024/10/18 05:52:32 miod Exp $ */ /* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */ /* @@ -3287,6 +3287,7 @@ nfs_advlock(void *v) int nfs_print(void *v) { +#if defined(DEBUG) || defined(DIAGNOSTIC) || defined(VFSLCKDEBUG) struct vop_print_args *ap = v; struct vnode *vp = ap->a_vp; struct nfsnode *np = VTONFS(vp); @@ -3298,6 +3299,7 @@ nfs_print(void *v) fifo_printinfo(vp); #endif printf("\n"); +#endif return (0); } |