]> asedeno.scripts.mit.edu Git - linux.git/commit
serial: 8250: Use cached port name directly in messages
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 25 Jul 2018 10:42:02 +0000 (13:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jul 2018 10:51:23 +0000 (12:51 +0200)
commit286d9b8c7d2e5c5df4c5d01b385668665e355678
tree35eeaeca9a20e245cff56fb1684c15d7527c9d82
parentb340cbbea5b876b9051d88afc712411a65750cf1
serial: 8250: Use cached port name directly in messages

Since we have port name stored in struct uart_port, we better to use
that one instead of open coding.

This will make it one place source for easier maintenance or
modifications.

While here, replace printk_ratelimited(KERN_INFO ) by pr_info_ratelimited().
It seems last printk() call in 8250_port.c.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c
drivers/tty/serial/8250/8250_port.c