diff options
author | jhb <jhb@FreeBSD.org> | 2003-03-04 21:03:05 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-03-04 21:03:05 +0000 |
commit | e4bcd25517da2e44fd854859cc6ead7dcfe3df3a (patch) | |
tree | d32954415444ccb8c42b0a457f6f0e6e15a0d64e /sys/kern/kern_lock.c | |
parent | e87dfc0cdec66dcab96cfd816e8a33d1c59dc261 (diff) | |
download | FreeBSD-src-e4bcd25517da2e44fd854859cc6ead7dcfe3df3a.zip FreeBSD-src-e4bcd25517da2e44fd854859cc6ead7dcfe3df3a.tar.gz |
Replace calls to WITNESS_SLEEP() and witness_list() with equivalent calls
to WITNESS_WARN().
Diffstat (limited to 'sys/kern/kern_lock.c')
-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 6ee1c5c..7f8b831 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -240,7 +240,9 @@ debuglockmgr(lkp, flags, interlkp, td, name, file, line) } if ((flags & (LK_NOWAIT|LK_RELEASE)) == 0) - WITNESS_SLEEP(1, &lkp->lk_interlock->mtx_object); + WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, + &lkp->lk_interlock->mtx_object, + "Acquiring lockmgr lock \"%s\"", lkp->lk_wmesg); if (panicstr != NULL) { mtx_unlock(lkp->lk_interlock); |