mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-05 18:05:16 +00:00
Check unit number and provide string name for consdev.
Submitted by: HPS
This commit is contained in:
parent
91b010c9d9
commit
acf4080f43
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198774
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user