summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_switch.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-09-07 06:38:22 +0000
committerjulian <julian@FreeBSD.org>2004-09-07 06:38:22 +0000
commit35060cd44886a34ab79f97422d592e3935fe8ee5 (patch)
tree6665f3167ee4e144dc79d36b5fb59332c59c069c /sys/kern/kern_switch.c
parentde0e7f8937a746462445e1039916574f4a8f3eee (diff)
downloadFreeBSD-src-35060cd44886a34ab79f97422d592e3935fe8ee5.zip
FreeBSD-src-35060cd44886a34ab79f97422d592e3935fe8ee5.tar.gz
Make debug printf less threatenning and make it only print out once.
MFC after: 2 days
Diffstat (limited to 'sys/kern/kern_switch.c')
-rw-r--r--sys/kern/kern_switch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c
index 399e3e9..aba4d45 100644
--- a/sys/kern/kern_switch.c
+++ b/sys/kern/kern_switch.c
@@ -342,9 +342,9 @@ setrunqueue(struct thread *td, int flags)
* Totally ignore the ksegrp run queue.
*/
if (kg->kg_avail_opennings != 1) {
- if (limitcount < 100) {
+ if (limitcount < 1) {
limitcount++;
- printf("pid %d: bad slot count (%d)\n",
+ printf("pid %d: corrected slot count (%d->1)\n",
td->td_proc->p_pid, kg->kg_avail_opennings);
}
OpenPOWER on IntegriCloud