summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r--sys/kern/kern_mutex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index 18dcc7e..bf157eb 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -119,7 +119,9 @@ propagate_priority(struct thread *td)
MPASS(td->td_proc != NULL);
MPASS(td->td_proc->p_magic == P_MAGIC);
- KASSERT(!TD_IS_SLEEPING(td), ("sleeping thread owns a mutex"));
+ KASSERT(!TD_IS_SLEEPING(td), (
+ "sleeping thread (pid %d) owns a mutex",
+ td->td_proc->p_pid));
if (td->td_priority <= pri) /* lower is higher priority */
return;
OpenPOWER on IntegriCloud