Improve the KASSERT to also have the prison pointer.

Helpful when debugging from ddb.

Sponsored by:		iXsystems, Inc.
This commit is contained in:
Bjoern A. Zeeb 2018-05-24 15:28:21 +00:00
parent 16529dace8
commit 36b41cc336
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334160

View File

@ -2660,7 +2660,7 @@ prison_hold_locked(struct prison *pr)
mtx_assert(&pr->pr_mtx, MA_OWNED);
KASSERT(pr->pr_ref > 0,
("Trying to hold dead prison (jid=%d).", pr->pr_id));
("Trying to hold dead prison %p (jid=%d).", pr, pr->pr_id));
pr->pr_ref++;
}