Date: Tue, 20 Mar 2018 22:05:21 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r331272 - head/sys/kern Message-ID: <201803202205.w2KM5LoE086518@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Tue Mar 20 22:05:21 2018 New Revision: 331272 URL: https://svnweb.freebsd.org/changeset/base/331272 Log: At this point iwmesg isn't initialized yet, so print pointer to lock rather than panic before panicing. Modified: head/sys/kern/kern_lock.c Modified: head/sys/kern/kern_lock.c ============================================================================== --- head/sys/kern/kern_lock.c Tue Mar 20 22:01:18 2018 (r331271) +++ head/sys/kern/kern_lock.c Tue Mar 20 22:05:21 2018 (r331272) @@ -722,8 +722,8 @@ lockmgr_xlock_hard(struct lock *lk, u_int flags, struc 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803202205.w2KM5LoE086518>