summaryrefslogtreecommitdiff
path: root/sys/dev/cons.c
diff options
context:
space:
mode:
authorsoren <soren@NetBSD.org>2002-08-02 19:55:32 +0000
committersoren <soren@NetBSD.org>2002-08-02 19:55:32 +0000
commit5fa952b83f3389fd22eefc8667ab38742e6c5168 (patch)
tree0040481bfb077ff23a7d1942352e141c0cf0f3a7 /sys/dev/cons.c
parentf69878391ee1600f7fb801d72ea8472ff463fe48 (diff)
As in PR kern/10999 from Matthew Orgass, make the panic message more
helpful in the case where no console device has registered.
Diffstat (limited to 'sys/dev/cons.c')
-rw-r--r--sys/dev/cons.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/cons.c b/sys/dev/cons.c
index a828f491092..ccc282c2b46 100644
--- a/sys/dev/cons.c
+++ b/sys/dev/cons.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cons.c,v 1.41 2001/11/13 05:32:50 lukem Exp $ */
+/* $NetBSD: cons.c,v 1.42 2002/08/02 19:55:32 soren Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cons.c,v 1.41 2001/11/13 05:32:50 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cons.c,v 1.42 2002/08/02 19:55:32 soren Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -85,7 +85,7 @@ cnopen(dev, flag, mode, p)
* code. Panicing looks better than jumping into nowhere
* through cdevsw below....
*/
- panic("cnopen: cn_tab->cn_dev == NODEV\n");
+ panic("cnopen: no console device\n");
}
if (dev == cndev) {
/*