diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-05-08 20:25:57 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-05-08 20:25:57 +0000 |
commit | 6becc8460f95947c1cd1c183adbf49e5ed1ae88d (patch) | |
tree | 8b2d83a086c08f1bdd9bfe00daba9d814801b34a /sys/kern | |
parent | 9f1f7df9c8d5cedd3c3703dc9785b431ac89522a (diff) |
lockmgr_printinfo() is only called from #ifdef DIAGNOSTIC positions, so #ifdef DIAGNOSTIC it too
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_lock.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 79e353e2cb9..3fc779e71b7 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_lock.c,v 1.27 2007/04/12 22:20:14 thib Exp $ */ +/* $OpenBSD: kern_lock.c,v 1.28 2007/05/08 20:25:56 deraadt Exp $ */ /* * Copyright (c) 1995 @@ -439,6 +439,7 @@ lockmgr(__volatile struct lock *lkp, u_int flags, struct simplelock *interlkp) return (error); } +#ifdef DIAGNOSTIC /* * Print out information about state of a lock. Used by VOP_PRINT * routines to display ststus about contained locks. @@ -459,6 +460,7 @@ lockmgr_printinfo(__volatile struct lock *lkp) if (lkp->lk_waitcount > 0) printf(" with %d pending", lkp->lk_waitcount); } +#endif /* DIAGNOSTIC */ #if defined(LOCKDEBUG) TAILQ_HEAD(, simplelock) simplelock_list = |