summaryrefslogtreecommitdiffstats
path: root/sys/tools/vnode_if.awk
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-09-26 04:48:44 +0000
committerjeff <jeff@FreeBSD.org>2002-09-26 04:48:44 +0000
commit31b1ddae746006fc46febc4b1e86b3771da6163c (patch)
treed5623b6ebd4f73839715bafc5963e9fd784a509f /sys/tools/vnode_if.awk
parent58b4c8ef8262d91211ca71f1217416841e3bed3b (diff)
downloadFreeBSD-src-31b1ddae746006fc46febc4b1e86b3771da6163c.zip
FreeBSD-src-31b1ddae746006fc46febc4b1e86b3771da6163c.tar.gz
- Move ASSERT_VOP_*LOCK* functionality into functions in vfs_subr.c
- Make the VI asserts more orthogonal to the rest of the asserts by using a new, common vfs_badlock() function and adding a 'str' arg. - Adjust generated ASSERTS to match the new prototype. - Adjust explicit ASSERTS to match the new prototype.
Diffstat (limited to 'sys/tools/vnode_if.awk')
-rw-r--r--sys/tools/vnode_if.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/tools/vnode_if.awk b/sys/tools/vnode_if.awk
index 7ff30c1..69bb0bf 100644
--- a/sys/tools/vnode_if.awk
+++ b/sys/tools/vnode_if.awk
@@ -66,7 +66,7 @@ function printh(s) {print s > hfile;}
function add_debug_code(name, arg, pos)
{
if (lockdata[name, arg, pos]) {
- printh("\tASSERT_VI_UNLOCKED("arg");");
+ printh("\tASSERT_VI_UNLOCKED("arg", \""uname"\");");
# Add assertions for locking
if (lockdata[name, arg, pos] == "L")
printh("\tASSERT_VOP_LOCKED("arg", \""uname"\");");
OpenPOWER on IntegriCloud