diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-02-26 17:34:19 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-02-26 17:34:19 +0000 |
commit | 085bb7f99e128a7516588b9f809fda911583c87c (patch) | |
tree | 53af6c4f0f04426f1b9317ca9e238918b014c9ec /sys/kern | |
parent | f455171ee03f6ac7be6b069f4d9047ec1cb5d482 (diff) |
Since VLOCKSWORK is only set when LOCKDEBUG is defined,
ifdef the VOP_ISLOCKED code with LOCKDEBUG instead of DIAGNOSTIC.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vnode_if.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vnode_if.sh b/sys/kern/vnode_if.sh index 7a75efae2d7..b3ce5700ef6 100644 --- a/sys/kern/vnode_if.sh +++ b/sys/kern/vnode_if.sh @@ -33,7 +33,7 @@ copyright="\ * SUCH DAMAGE. */ " -SCRIPT_ID='$OpenBSD: vnode_if.sh,v 1.7 2001/02/26 17:12:27 art Exp $' +SCRIPT_ID='$OpenBSD: vnode_if.sh,v 1.8 2001/02/26 17:34:18 art Exp $' # SCRIPT_ID='$NetBSD: vnode_if.sh,v 1.9 1996/02/29 20:58:22 cgd Exp $' # Script to produce VFS front-end sugar. @@ -317,7 +317,7 @@ function doit() { for (i=0; i<argc; i++) { printf("\ta.a_%s = %s;\n", argname[i], argname[i]); if (shouldbelocked[i]) { - printf ("#ifdef DIAGNOSTIC\n"); + printf ("#ifdef LOCKDEBUG\n"); printf ("\tif ((%s->v_flag & VLOCKSWORK) && !VOP_ISLOCKED(%s))\n", argname[i], argname[i]); printf ("\t\tpanic(\"%s: %s\");\n", name, argname[i]); printf ("#endif\n"); |