svn commit: r212096 - head/sys/kern

Ed Maste emaste at FreeBSD.org
Wed Sep 1 13:47:12 UTC 2010


Author: emaste
Date: Wed Sep  1 13:47:11 2010
New Revision: 212096
URL: http://svn.freebsd.org/changeset/base/212096

Log:
  As long as we are going to panic anyway, there's no need to hide additional
  information behind DIAGNOSTIC.

Modified:
  head/sys/kern/vfs_subr.c

Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c	Wed Sep  1 13:22:55 2010	(r212095)
+++ head/sys/kern/vfs_subr.c	Wed Sep  1 13:47:11 2010	(r212096)
@@ -2203,9 +2203,7 @@ vputx(struct vnode *vp, int func)
 	}
 
 	if (vp->v_usecount != 1) {
-#ifdef DIAGNOSTIC
 		vprint("vputx: negative ref count", vp);
-#endif
 		panic("vputx: negative ref cnt");
 	}
 	CTR2(KTR_VFS, "%s: return vnode %p to the freelist", __func__, vp);


More information about the svn-src-all mailing list