Date: Sun, 8 May 2005 20:25:09 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/uart uart_tty.c Message-ID: <200505082025.j48KP9F3093795@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2005-05-08 20:25:09 UTC FreeBSD src repository Modified files: sys/dev/uart uart_tty.c Log: In uart_cnprobe(), fill in the cn_name field of the consdev structure. The core console code checks this field when a console is added and emits a warning if it's empty. In practice the warning is harmless for uart(4), because the cn_name is filled in as soon as the device name is known; which is when the device is enumerated. To avoid the warning, to avoid possible complications caused by emitting the warning without there (possibly) being a console selected yet and to avoid complications when the UART isn't found during bus enumeration, we just preset the cn_name field here to the name of the driver. Revision Changes Path 1.22 +1 -0 src/sys/dev/uart/uart_tty.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505082025.j48KP9F3093795>