From: Russell King Date: Mon, 31 Oct 2005 11:42:22 +0000 (+0000) Subject: [SERIAL] Arrange better identification of ports X-Git-Tag: v2.6.15-rc1~18^2~32^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0cf669d5c5d08eb827df9867429df21cf030eba6;p=platform%2Fkernel%2Flinux-exynos.git [SERIAL] Arrange better identification of ports Folk seem to get confused when they see two or more ttyS0 ports appearing at boot time. One comes from the legacy table, and one from PNP. Hence, display the bus ID of the device which supplied the port. Signed-off-by: Russell King --- diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c index 401d94a..0745ce7 100644 --- a/drivers/serial/serial_core.c +++ b/drivers/serial/serial_core.c @@ -1967,7 +1967,9 @@ uart_report_port(struct uart_driver *drv, struct uart_port *port) break; } - printk(KERN_INFO "%s%d at %s (irq = %d) is a %s\n", + printk(KERN_INFO "%s%s%s%d at %s (irq = %d) is a %s\n", + port->dev ? port->dev->bus_id : "", + port->dev ? ": " : "", drv->dev_name, port->line, address, port->irq, uart_type(port)); }