tty: core: Add tty_debug() for printk(KERN_DEBUG) messages
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 13 Jul 2015 02:49:08 +0000 (22:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jul 2015 01:37:31 +0000 (18:37 -0700)
commite2dfa3d38797058fa03478b08bab3d3c4b081615
tree4ebb61b80afce2fad0dca398f770db0dd3784f5a
parent3a6b02dc1f1b37fe2e9c86c00edf07c04bed9fab
tty: core: Add tty_debug() for printk(KERN_DEBUG) messages

Introduce tty_debug() macro to output uniform debug information for
tty core debug messages (function name and tty name).

Note: printk(KERN_DEBUG) is retained here over pr_debug() since
messages can be enabled in non-DEBUG builds.

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