From 83fc34ea0dbcd7066e86af7a2dd1edf50c91bf3f Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Tue, 20 Mar 2018 22:05:21 +0000 Subject: [PATCH] At this point iwmesg isn't initialized yet, so print pointer to lock rather than panic before panicing. --- sys/kern/kern_lock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 8c40ec63ad0..cc59fbacf63 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -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);