1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00

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 = LOCK_CLASS(ilk);
class->lc_unlock(ilk); class->lc_unlock(ilk);
} }
panic("%s: recursing on non recursive lockmgr %s @ %s:%d\n", panic("%s: recursing on non recursive lockmgr %p "
__func__, iwmesg, file, line); "@ %s:%d\n", __func__, lk, file, line);
} }
lk->lk_recurse++; lk->lk_recurse++;
LOCK_LOG2(lk, "%s: %p recursing", __func__, lk); LOCK_LOG2(lk, "%s: %p recursing", __func__, lk);