Improve the KASSERT to also have the prison pointer.
Helpful when debugging from ddb. Sponsored by: iXsystems, Inc.
This commit is contained in:
parent
16529dace8
commit
36b41cc336
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334160
@ -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