NetBSD Problem Report #10999
Received: (qmail 11761 invoked from network); 13 Sep 2000 02:41:50 -0000
Message-Id: <Pine.BSI.3.96.1000912223559.20217A-100000@doit.pgh.net>
Date: Tue, 12 Sep 2000 22:41:44 -0400 (EDT)
From: Matthew Orgass <darkstar@pgh.net>
Reply-To: Matthew Orgass <darkstar@pgh.net>
To: gnats-bugs@gnats.netbsd.org
Subject: unhelpful panic message when no console device is found
>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: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Sep 13 02:42:00 +0000 2000
>Closed-Date: Fri Aug 02 19:55:54 +0000 2002
>Last-Modified: Fri Aug 02 19:55:54 +0000 2002
>Originator: Matthew Orgass
>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:
State-Changed-From-To: open->closed
State-Changed-By: soren
State-Changed-When: Fri Aug 2 12:55:44 PDT 2002
State-Changed-Why:
Fixed as suggested. Thanks!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.