From 89d7a27c824bb108be20b53151e3286e9a2d0efd Mon Sep 17 00:00:00 2001 From: bz Date: Thu, 24 May 2018 15:28:21 +0000 Subject: [PATCH] Improve the KASSERT to also have the prison pointer. Helpful when debugging from ddb. Sponsored by: iXsystems, Inc. --- sys/kern/kern_jail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c index e2e7805caed4..ae6cd8e78ea3 100644 --- a/sys/kern/kern_jail.c +++ b/sys/kern/kern_jail.c @@ -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++; }