diff options
author | jeff <jeff@FreeBSD.org> | 2004-01-25 08:21:46 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2004-01-25 08:21:46 +0000 |
commit | 303af3be52a300bead1e87a2df1102017f67f34a (patch) | |
tree | 7ed6ba7aa245f708684db09926f6c3ffe4e7efa6 /sys/kern | |
parent | f7071e6735d7b64ec89a59ba2188320e7340933e (diff) | |
download | FreeBSD-src-303af3be52a300bead1e87a2df1102017f67f34a.zip FreeBSD-src-303af3be52a300bead1e87a2df1102017f67f34a.tar.gz |
- Correct function names listed in KASSERTs. These were copied from other
code and it was sloppy of me not to adjust these sooner.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/sched_4bsd.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c index 24b661d..5280137 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -643,7 +643,7 @@ sched_switch(struct thread *td) p = td->td_proc; mtx_assert(&sched_lock, MA_OWNED); - KASSERT((ke->ke_state == KES_THREAD), ("mi_switch: kse state?")); + KASSERT((ke->ke_state == KES_THREAD), ("sched_switch: kse state?")); td->td_lastcpu = td->td_oncpu; td->td_last_kse = ke; @@ -693,14 +693,14 @@ sched_add(struct thread *td) ke = td->td_kse; mtx_assert(&sched_lock, MA_OWNED); - KASSERT((ke->ke_thread != NULL), ("runq_add: No thread on KSE")); + KASSERT((ke->ke_thread != NULL), ("sched_add: No thread on KSE")); KASSERT((ke->ke_thread->td_kse != NULL), - ("runq_add: No KSE on thread")); + ("sched_add: No KSE on thread")); KASSERT(ke->ke_state != KES_ONRUNQ, - ("runq_add: kse %p (%s) already in run queue", ke, + ("sched_add: kse %p (%s) already in run queue", ke, ke->ke_proc->p_comm)); KASSERT(ke->ke_proc->p_sflag & PS_INMEM, - ("runq_add: process swapped out")); + ("sched_add: process swapped out")); ke->ke_ksegrp->kg_runq_kses++; ke->ke_state = KES_ONRUNQ; @@ -727,8 +727,9 @@ sched_rem(struct thread *td) ke = td->td_kse; KASSERT(ke->ke_proc->p_sflag & PS_INMEM, - ("runq_remove: process swapped out")); - KASSERT((ke->ke_state == KES_ONRUNQ), ("KSE not on run queue")); + ("sched_rem: process swapped out")); + KASSERT((ke->ke_state == KES_ONRUNQ), + ("sched_rem: KSE not on run queue")); mtx_assert(&sched_lock, MA_OWNED); runq_remove(ke->ke_sched->ske_runq, ke); @@ -771,11 +772,11 @@ sched_choose(void) ke->ke_state = KES_THREAD; KASSERT((ke->ke_thread != NULL), - ("runq_choose: No thread on KSE")); + ("sched_choose: No thread on KSE")); KASSERT((ke->ke_thread->td_kse != NULL), - ("runq_choose: No KSE on thread")); + ("sched_choose: No KSE on thread")); KASSERT(ke->ke_proc->p_sflag & PS_INMEM, - ("runq_choose: process swapped out")); + ("sched_choose: process swapped out")); } return (ke); } |