Subject: port-i386/2542: pmap_collect verbose when compiled w/ DEBUG
To: None <gnats-bugs@NetBSD.ORG>
From: Paul J. Lavoie <>
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
>Originator:     Paul J. Lavoie
ILX Systems
>Release:        <NetBSD-current source date>current-960513 tarfiles
System: NetBSD 1.1B NetBSD 1.1B (Plucky3) #1: Wed May 29 13:57:13 EDT 1996 i386

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

<       printf("pmap_collect(%x) ", pmap);
>       if (pmapdebug & PDB_COLLECT) 
>           printf("pmap_collect(%x) ", pmap);