mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFC r198774
Check unit number and provide string name for consdev. Submitted by: HPS
This commit is contained in:
parent
c39d541d9f
commit
975199a5ac
1 changed files with 6 additions and 1 deletions
|
|
@ -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…
Reference in a new issue