diff options
author | Attilio Rao <attilio@FreeBSD.org> | 2012-09-12 22:05:54 +0000 |
---|---|---|
committer | Attilio Rao <attilio@FreeBSD.org> | 2012-09-12 22:05:54 +0000 |
commit | faa1082aa2b2b3968f34095709ac5d58944833f9 (patch) | |
tree | 078d6372e403c4f4f1e6a11a04b70bb5f6f2630f /sys/kern/subr_sleepqueue.c | |
parent | 4170b08388cd81d4db30aa38ff59108e88eab33c (diff) |
Notes
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 b868289e720d..2d5ea511aafd 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); |