Subject: port-i386/2542: pmap_collect verbose when compiled w/ DEBUG
To: None <gnats-bugs@NetBSD.ORG>
From: Paul J. Lavoie <pjl@ilx.com>
List: netbsd-bugs
Date: 06/12/1996 14:47:52
>Number:         2542
>Category:       port-i386
>Synopsis:       debug variable not being used
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 12 11:20:02 1996
>Last-Modified:
>Originator:     Paul J. Lavoie
>Organization:
ILX Systems
>Release:        <NetBSD-current source date>current-960513 tarfiles
>Environment:
	
System: NetBSD plucky.devo.ilx.com 1.1B NetBSD 1.1B (Plucky3) #1: Wed May 29 13:57:13 EDT 1996 pjl@plucky.devo.ilx.com:/usr/src/sys/arch/i386/compile/Plucky3 i386


>Description:
	
	When the kernel is compiled with options DEBUG, the function
pmap_collect does not check pmapdebug to see if it should actually
report anything.
	
>How-To-Repeat:
	
	1) Compile kernel with options DEBUG
	2) Use system memory. Once paging starts, kernel messages should
	start to pop up.
>Fix:
	
The following change to /usr/src/sys/arch/i386/i386/pmap.c:

1373c1373,1374
<       printf("pmap_collect(%x) ", pmap);
---
>       if (pmapdebug & PDB_COLLECT) 
>           printf("pmap_collect(%x) ", pmap);
>Audit-Trail:
>Unformatted: