Check unit number and provide string name for consdev.

Submitted by:	HPS
This commit is contained in:
Andrew Thompson 2009-11-01 21:41:44 +00:00
parent 91b010c9d9
commit acf4080f43
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198774

View File

@ -1300,7 +1300,12 @@ CONSOLE_DRIVER(ucom);
static void
ucom_cnprobe(struct consdev *cp)
{
cp->cn_pri = CN_NORMAL;
if (ucom_cons_unit != -1)
cp->cn_pri = CN_NORMAL;
else
cp->cn_pri = CN_DEAD;
strlcpy(cp->cn_name, "ucom", sizeof(cp->cn_name));
}
static void