diff options
author | attilio <attilio@FreeBSD.org> | 2012-09-12 22:05:54 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2012-09-12 22:05:54 +0000 |
commit | ac29dac65b70ec7f821f36ac07f086e6a514fe1a (patch) | |
tree | 078d6372e403c4f4f1e6a11a04b70bb5f6f2630f /sys/kern/subr_sleepqueue.c | |
parent | 0fa239bbd777d6f3e2661e7e950511e42bf4e720 (diff) | |
download | FreeBSD-src-ac29dac65b70ec7f821f36ac07f086e6a514fe1a.zip FreeBSD-src-ac29dac65b70ec7f821f36ac07f086e6a514fe1a.tar.gz |
Tweak the commit message in case of panic for sleeping from threads
with TDP_NOSLEEPING on.
The current message has no informations on the thread and wchan
involed, which may be useful in case where dumps have mangled dwarf
informations.
Reported by: kib
Reviewed by: bde, jhb, kib
MFC after: 1 week
Diffstat (limited to 'sys/kern/subr_sleepqueue.c')
-rw-r--r-- | sys/kern/subr_sleepqueue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_sleepqueue.c b/sys/kern/subr_sleepqueue.c index b868289..2d5ea51 100644 --- a/sys/kern/subr_sleepqueue.c +++ b/sys/kern/subr_sleepqueue.c @@ -297,7 +297,8 @@ sleepq_add(void *wchan, struct lock_object *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 sleep, but thread marked as sleeping prohibited")); + ("%s: td %p to sleep on wchan %p with TDP_NOSLEEPING on", + __func__, td, wchan)); /* Look up the sleep queue associated with the wait channel 'wchan'. */ sq = sleepq_lookup(wchan); |