Subject: kern/2508: Uninformative pannic message in vm_kern.c
To: None <gnats-bugs@NetBSD.ORG>
From: Jonas Lagerblad <jonas@ivee.com>
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
>Last-Modified:
>Originator: Jonas Lagerblad
>Organization:
Jonas Lagerblad, IVEE Development AB, jonas@ivee.com
Phone (office): +46-31 701 42 61 Mobile: +46-707 79 73 37
Telefax: +46-31 101987
>Release: NetBSD-current 960510
>Environment:
System: NetBSD spot.ivee.com 1.1B NetBSD 1.1B (IVEE-SCSI) #0: Sat May 11 16:59:54 MET DST 1996 jonas@spot.ivee.com:/usr/src/sys.aic/arch/i386/compile/IVEE-SCSI i386
>Description:
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.
>How-To-Repeat:
>Fix:
E.g.
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
>Audit-Trail:
>Unformatted: