From a8c7b4178ef3aadb302e2a9c94d8ee0a1415c62d Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 11 Mar 2003 20:00:37 +0000 Subject: Use the KTR_LOCK mask for logging events via KTR in lockmgr() rather than KTR_LOCKMGR. lockmgr locks are locks just like other locks. --- sys/kern/kern_lock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/kern/kern_lock.c') 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); } -- cgit v1.1