From owner-cvs-all@FreeBSD.ORG Sun May 8 20:25:09 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE04C16A4E6; Sun, 8 May 2005 20:25:09 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9B8843D46; Sun, 8 May 2005 20:25:09 +0000 (GMT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j48KP9Ki093796; Sun, 8 May 2005 20:25:09 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j48KP9F3093795; Sun, 8 May 2005 20:25:09 GMT (envelope-from marcel) Message-Id: <200505082025.j48KP9F3093795@repoman.freebsd.org> From: Marcel Moolenaar Date: Sun, 8 May 2005 20:25:09 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/uart uart_tty.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 20:25:09 -0000 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