At this point iwmesg isn't initialized yet, so print pointer to lock

rather than panic before panicing.
This commit is contained in:
Gleb Smirnoff 2018-03-20 22:05:21 +00:00
parent 4e96c99bdf
commit 83fc34ea0d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331272

View File

@ -722,8 +722,8 @@ lockmgr_xlock_hard(struct lock *lk, u_int flags, struct lock_object *ilk,
class = LOCK_CLASS(ilk);
class->lc_unlock(ilk);
}
panic("%s: recursing on non recursive lockmgr %s @ %s:%d\n",
__func__, iwmesg, file, line);
panic("%s: recursing on non recursive lockmgr %p "
"@ %s:%d\n", __func__, lk, file, line);
}
lk->lk_recurse++;
LOCK_LOG2(lk, "%s: %p recursing", __func__, lk);