]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/tty/n_tty.c
tty: Define tty_*() printk macros
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 8 Nov 2015 18:01:13 +0000 (13:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Dec 2015 03:59:48 +0000 (19:59 -0800)
commit339f36ba14cf9f8fcf6e6b78385bd6811ec59fbe
treee5bed951017a1b12b262df03d00d1fbb8fc78db9
parent0a083eddae33b6e20234d05a9cf54f87b0095511
tty: Define tty_*() printk macros

Since not all ttys are devices (eg., SysV ptys), dev_*() printk macros
cannot be used. Define tty_*() printk macros that output in similar
format to dev_*() macros (ie., <driver> <tty>: .....).

Transform the most-trivial printk( LEVEL ...) usage to tty_*() usage.
NB: The function name has been eliminated from messages with unique
context, or prefixed to the format when given.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c
drivers/tty/tty_io.c
drivers/tty/tty_port.c
include/linux/tty.h