diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-09-26 18:57:34 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-09-26 18:57:34 +0000 |
| commit | c9f007b68554c230770e03e84274011e9dd65300 (patch) | |
| tree | f458fea74253d48cd983c1822123fe04cf99d8b6 /sys/dev/syscons | |
| parent | 12d984b608000d9717326abe9decbdb03b68924e (diff) | |
Notes
Diffstat (limited to 'sys/dev/syscons')
| -rw-r--r-- | sys/dev/syscons/syscons.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 7b1812fab5ac..17daf5d59382 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -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); } |
