Subject: kern/10999: unhelpful panic message when no console device is found
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthew Orgass <darkstar@pgh.net>
List: netbsd-bugs
Date: 09/12/2000 19:41:15
>Number: 10999
>Category: kern
>Synopsis: unhelpful panic message when no console device is found
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Sep 12 19:42:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: darkstar@pgh.net
>Release: all
>Organization:
>Environment:
>Description:
>How-To-Repeat:
Accedently configure the wrong display card and wonder what "panic:
cnopen: cn_tab->cn_dev == NODEV" means.
>Fix:
Index: cons.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/cons.c,v
retrieving revision 1.37
diff -u -r1.37 cons.c
--- cons.c 2000/06/12 05:02:22 1.37
+++ cons.c 2000/09/13 02:35:07
@@ -82,7 +82,7 @@
* code. Panicing looks better than jumping into nowhere
* through cdevsw below....
*/
- panic("cnopen: cn_tab->cn_dev == NODEV\n");
+ panic("cnopen: no console device: cn_tab->cn_dev == NODEV\n");
}
if (dev == cndev) {
/*
@@ -91,7 +91,7 @@
* dev == 0 and cn_dev has not been set, but was probably
* initialised to 0.
*/
- panic("cnopen: cn_tab->cn_dev == dev\n");
+ panic("cnopen: no console device: cn_tab->cn_dev == dev\n");
}
if (cn_devvp == NULLVP) {
>Release-Note:
>Audit-Trail:
>Unformatted: