Improve the KASSERT to also have the prison pointer.

Helpful when debugging from ddb.

Sponsored by:		iXsystems, Inc.
This commit is contained in:
bz 2018-05-24 15:28:21 +00:00
parent dc8bdd983f
commit 89d7a27c82

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++;
}