aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-10-31 06:42:22 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2005-10-31 06:42:22 -0500
commit0cf669d5c5d08eb827df9867429df21cf030eba6 (patch)
tree6eb72f3c25f7acc0e67d0e954be8ee4525fbd4c7 /drivers/serial
parente2f2e58e7968f8446b1078a20a18bf8ea12b4fbc (diff)
[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 <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial_core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c
index 401d94a7fe2e..0745ce782974 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)
1967 break; 1967 break;
1968 } 1968 }
1969 1969
1970 printk(KERN_INFO "%s%d at %s (irq = %d) is a %s\n", 1970 printk(KERN_INFO "%s%s%s%d at %s (irq = %d) is a %s\n",
1971 port->dev ? port->dev->bus_id : "",
1972 port->dev ? ": " : "",
1971 drv->dev_name, port->line, address, port->irq, uart_type(port)); 1973 drv->dev_name, port->line, address, port->irq, uart_type(port));
1972} 1974}
1973 1975