Improve the KASSERT to also have the prison pointer.
Helpful when debugging from ddb. Sponsored by: iXsystems, Inc.
This commit is contained in:
parent
dc8bdd983f
commit
89d7a27c82
@ -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++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user