summaryrefslogtreecommitdiff
path: root/sys/isofs/cd9660
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2006-01-09 12:43:18 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2006-01-09 12:43:18 +0000
commitfb4205421dd06345cb985ab4252728fdb3a7a304 (patch)
tree5fb7c27ad703407502e64635f74ff375fb280958 /sys/isofs/cd9660
parent046383c234884c958ab6ca9ea5fddba703102e1b (diff)
Put vprint() under DIAGNOSTIC, as to save space in generated ramdisks.
Inspiration from miod@, okay deraadt@. Tested on i386, macppc and amd64.
Diffstat (limited to 'sys/isofs/cd9660')
-rw-r--r--sys/isofs/cd9660/cd9660_node.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/isofs/cd9660/cd9660_node.c b/sys/isofs/cd9660/cd9660_node.c
index f7c6abda357..c538b32f378 100644
--- a/sys/isofs/cd9660/cd9660_node.c
+++ b/sys/isofs/cd9660/cd9660_node.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd9660_node.c,v 1.15 2005/11/19 02:18:01 pedro Exp $ */
+/* $OpenBSD: cd9660_node.c,v 1.16 2006/01/09 12:43:16 pedro Exp $ */
/* $NetBSD: cd9660_node.c,v 1.17 1997/05/05 07:13:57 mycroft Exp $ */
/*-
@@ -243,9 +243,11 @@ cd9660_inactive(v)
struct proc *p = ap->a_p;
register struct iso_node *ip = VTOI(vp);
int error = 0;
-
+
+#ifdef DIAGNOSTIC
if (prtactive && vp->v_usecount != 0)
vprint("cd9660_inactive: pushing active", vp);
+#endif
ip->i_flag = 0;
VOP_UNLOCK(vp, 0, p);
@@ -271,9 +273,12 @@ cd9660_reclaim(v)
} */ *ap = v;
register struct vnode *vp = ap->a_vp;
register struct iso_node *ip = VTOI(vp);
-
+
+#ifdef DIAGNOSTIC
if (prtactive && vp->v_usecount != 0)
vprint("cd9660_reclaim: pushing active", vp);
+#endif
+
/*
* Remove the inode from its hash chain.
*/