Use the KTR_LOCK mask for logging events via KTR in lockmgr() rather

than KTR_LOCKMGR.  lockmgr locks are locks just like other locks.
This commit is contained in:
John Baldwin 2003-03-11 20:00:37 +00:00
parent 4c6ffc94c0
commit c06394f53f

View File

@ -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);
}