Subject: kern/7121: Extraneous debug message in src/sys/uvm/uvm_glue.c
To: None <gnats-bugs@gnats.netbsd.org>
From: Gary Duzan <gary@wheel.tiac.net>
List: netbsd-bugs
Date: 03/10/1999 07:34:59
>Number: 7121
>Category: kern
>Synopsis: Extraneous debug message in src/sys/uvm/uvm_glue.c
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 10 04:50:01 1999
>Last-Modified:
>Originator: Gary Duzan
>Organization:
Not an awful lot
>Release: Mon Mar 8 07:49:33 EST 1999
>Environment:
System: NetBSD wheel 1.3J NetBSD 1.3J (WHEEL) #0: Sun Feb 28 12:01:35 EST 1999 gary@wheel:/disk1/src/sys/arch/i386/compile/WHEEL i386
>Description:
In src/sys/uvm/uvm_glue.c:uvm_scheduler(), we have the following
bit of code:
===========================================================================
/*
* not enough memory, jab the pageout daemon and wait til the coast
* is clear
*/
#ifdef DEBUG
if (swapdebug & SDB_FOLLOW)
printf("scheduler: no room for pid %d(%s), free %d\n",
p->p_pid, p->p_comm, uvmexp.free);
#endif
printf("scheduler: no room for pid %d(%s), free %d\n",
p->p_pid, p->p_comm, uvmexp.free);/*XXXCDC: HIGHLY BOGUS */
===========================================================================
This seems rather silly and results in extra junk filling up
the dmesg buffer:
===========================================================================
scheduler: no room for pid 220(systat), free 1
scheduler: no room for pid 190(xconsole), free 1
scheduler: no room for pid 190(xconsole), free 1
===========================================================================
>How-To-Repeat:
By inspection.
>Fix:
Yank the HIGHLY BOGUS copy.
>Audit-Trail:
>Unformatted: