Subject: kern/2508: Uninformative pannic message in vm_kern.c
To: None <gnats-bugs@NetBSD.ORG>
From: Jonas Lagerblad <>
List: netbsd-bugs
Date: 06/03/1996 20:57:24
>Number:         2508
>Category:       kern
>Synopsis:       Uninformative pannic message in vm_kern.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun  3 15:20:03 1996
>Originator:     Jonas Lagerblad
Jonas Lagerblad, IVEE Development AB,
Phone (office): +46-31 701 42 61    Mobile: +46-707 79 73 37
Telefax:        +46-31 101987
>Release:        NetBSD-current 960510
System: NetBSD 1.1B NetBSD 1.1B (IVEE-SCSI) #0: Sat May 11 16:59:54 MET DST 1996 i386

	In vm/vm_kern.c around line 300 there is a panic statement that uses 
	%s to get tha name of the buffer:
		    panic("kmem_malloc: %s too small",
			map == kmem_map ? "kmem_map" : "mb_map");
	This didn't work in the 960510-SUPed kernel.

			panic(map == kmem_map ? "kmem_malloc: kmem_map too small",
						"kmem_malloc: mb_map too small");
	or implement %s in panic....

	Best regards
	Jonas Lagerblad