From 2002eaadb7fa764ec32c00467fca646c6d6822a6 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 9 Nov 2005 07:28:52 +0000 Subject: [PATCH] Clarify panic message, I parsed the old one 'trying to sleep while sleeping' --- sys/kern/subr_sleepqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/subr_sleepqueue.c b/sys/kern/subr_sleepqueue.c index 092c5c28bc3..8443a7ffeaf 100644 --- a/sys/kern/subr_sleepqueue.c +++ b/sys/kern/subr_sleepqueue.c @@ -271,7 +271,7 @@ sleepq_add(void *wchan, struct mtx *lock, const char *wmesg, int flags) /* If this thread is not allowed to sleep, die a horrible death. */ KASSERT(!(td->td_pflags & TDP_NOSLEEPING), - ("trying to sleep while sleeping is prohibited")); + ("Trying sleep, but thread marked as sleeping prohibited")); /* Look up the sleep queue associated with the wait channel 'wchan'. */ sq = sleepq_lookup(wchan);