]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tty: Remove __func__ from tty_debug() macro
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 8 Nov 2015 18:01:19 +0000 (13:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Dec 2015 03:59:48 +0000 (19:59 -0800)
commitd435cefe9cbc9308cac8d4b19069a572e2bd1558
treeb632888b6642fd2007d7f4d76d7deb06ad5d45e1
parent89222e62662237faee90cd8486d23350f26b181d
tty: Remove __func__ from tty_debug() macro

Now that tty_debug() macro uses pr_debug(), the function name can
be printed when using dynamic debug; printing the function name within
the format string is redundant.

Remove the __func__ parameter and print specifier from the format string.
Add context to messages for when the function name is not printed by
dynamic debug, or when dynamic debug is not enabled.

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