jsm: Rewriting a bad log message
authorBreno Leitão <leitao@linux.vnet.ibm.com>
Thu, 24 Sep 2009 19:58:23 +0000 (16:58 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 23:18:02 +0000 (15:18 -0800)
Actually jsm displays "Device Added" 8 times (for a 8 port device).
This silly patch just makes things more informative, showing
the port (instead of the device) that was added.

Signed-off-by: Breno Leitão <leitao@linux.vnet.ibm.com>
Cc: Scott Kilau <scottk@digi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/jsm/jsm_tty.c

index 7439c0373620b60f0351b2cccda143d1b023a642..6423dfb825f4ea2c6fe584cec57c02342e896fca 100644 (file)
@@ -472,7 +472,7 @@ int __devinit jsm_uart_port_init(struct jsm_board *brd)
                if (uart_add_one_port (&jsm_uart_driver, &brd->channels[i]->uart_port))
                        printk(KERN_INFO "jsm: add device failed\n");
                else
-                       printk(KERN_INFO "Added device \n");
+                       printk(KERN_INFO "jsm: Port %d added\n", i);
        }
 
        jsm_printk(INIT, INFO, &brd->pci_dev, "finish\n");