From fb4205421dd06345cb985ab4252728fdb3a7a304 Mon Sep 17 00:00:00 2001 From: Pedro Martelletto Date: Mon, 9 Jan 2006 12:43:18 +0000 Subject: Put vprint() under DIAGNOSTIC, as to save space in generated ramdisks. Inspiration from miod@, okay deraadt@. Tested on i386, macppc and amd64. --- sys/ntfs/ntfs_vnops.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/ntfs/ntfs_vnops.c') diff --git a/sys/ntfs/ntfs_vnops.c b/sys/ntfs/ntfs_vnops.c index b02cc40c137..83b957fc56c 100644 --- a/sys/ntfs/ntfs_vnops.c +++ b/sys/ntfs/ntfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntfs_vnops.c,v 1.9 2005/10/19 16:50:47 pedro Exp $ */ +/* $OpenBSD: ntfs_vnops.c,v 1.10 2006/01/09 12:43:16 pedro Exp $ */ /* $NetBSD: ntfs_vnops.c,v 1.6 2003/04/10 21:57:26 jdolecek Exp $ */ /* @@ -267,8 +267,10 @@ ntfs_inactive(ap) dprintf(("ntfs_inactive: vnode: %p, ntnode: %d\n", vp, ip->i_number)); +#ifdef DIAGNOSTIC if (ntfs_prtactive && vp->v_usecount != 0) vprint("ntfs_inactive: pushing active", vp); +#endif VOP__UNLOCK(vp, 0, p); @@ -298,8 +300,10 @@ ntfs_reclaim(ap) dprintf(("ntfs_reclaim: vnode: %p, ntnode: %d\n", vp, ip->i_number)); +#ifdef DIAGNOSTIC if (ntfs_prtactive && vp->v_usecount != 0) vprint("ntfs_reclaim: pushing active", vp); +#endif #ifndef __OpenBSD__ if ((error = ntfs_ntget(ip)) != 0) -- cgit v1.2.3