diff options
author | jhb <jhb@FreeBSD.org> | 2003-03-11 20:00:37 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-03-11 20:00:37 +0000 |
commit | a8c7b4178ef3aadb302e2a9c94d8ee0a1415c62d (patch) | |
tree | bc9916ae5502a02985c8e236c44b137c4636f7be /sys/kern/kern_lock.c | |
parent | 559c6447408830588980b10f618737131339474f (diff) | |
download | FreeBSD-src-a8c7b4178ef3aadb302e2a9c94d8ee0a1415c62d.zip FreeBSD-src-a8c7b4178ef3aadb302e2a9c94d8ee0a1415c62d.tar.gz |
Use the KTR_LOCK mask for logging events via KTR in lockmgr() rather
than KTR_LOCKMGR. lockmgr locks are locks just like other locks.
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r-- | sys/kern/kern_lock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 7f8b831..c74167b 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -148,7 +148,7 @@ acquire(struct lock **lkpp, int extflags, int wanted) { struct lock *lkp = *lkpp; int s, error; - CTR3(KTR_LOCKMGR, + CTR3(KTR_LOCK, "acquire(): lkp == %p, extflags == 0x%x, wanted == 0x%x\n", lkp, extflags, wanted); @@ -222,7 +222,7 @@ debuglockmgr(lkp, flags, interlkp, td, name, file, line) struct thread *thr; int extflags, lockflags; - CTR5(KTR_LOCKMGR, + CTR5(KTR_LOCK, "lockmgr(): lkp == %p (lk_wmesg == \"%s\"), flags == 0x%x, " "interlkp == %p, td == %p", lkp, lkp->lk_wmesg, flags, interlkp, td); @@ -534,7 +534,7 @@ lockinit(lkp, prio, wmesg, timo, flags) int timo; int flags; { - CTR5(KTR_LOCKMGR, "lockinit(): lkp == %p, prio == %d, wmesg == \"%s\", " + CTR5(KTR_LOCK, "lockinit(): lkp == %p, prio == %d, wmesg == \"%s\", " "timo == %d, flags = 0x%x\n", lkp, prio, wmesg, timo, flags); if (lock_mtx_valid == 0) { @@ -579,7 +579,7 @@ void lockdestroy(lkp) struct lock *lkp; { - CTR2(KTR_LOCKMGR, "lockdestroy(): lkp == %p (lk_wmesg == \"%s\")", + CTR2(KTR_LOCK, "lockdestroy(): lkp == %p (lk_wmesg == \"%s\")", lkp, lkp->lk_wmesg); } |