1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

Convert to cn_name rather than cn_dev.

This commit is contained in:
Poul-Henning Kamp 2003-09-26 18:57:34 +00:00
parent 12d984b608
commit c9f007b685
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120488

View File

@ -1395,7 +1395,7 @@ sccnprobe(struct consdev *cp)
return;
/* initialize required fields */
cp->cn_dev = makedev(CDEV_MAJOR, SC_CONSOLECTL);
sprintf(cp->cn_name, "consolectl");
#endif /* __i386__ || __ia64__ || __amd64__ || __sparc64__ */
#if __alpha__
@ -1475,7 +1475,7 @@ sccnattach(void)
scinit(unit, flags | SC_KERNEL_CONSOLE);
sc_console_unit = unit;
sc_console = SC_STAT(sc_get_softc(unit, SC_KERNEL_CONSOLE)->dev[0]);
consdev.cn_dev = makedev(CDEV_MAJOR, 0);
sprintf(consdev.cn_name, "ttyv%r", 0);
cnadd(&consdev);
}