From 5fa952b83f3389fd22eefc8667ab38742e6c5168 Mon Sep 17 00:00:00 2001 From: soren Date: Fri, 2 Aug 2002 19:55:32 +0000 Subject: As in PR kern/10999 from Matthew Orgass, make the panic message more helpful in the case where no console device has registered. --- sys/dev/cons.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev') 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 -__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 #include @@ -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) { /* -- cgit