pty: Add debug message for ptmx open
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 13 Jul 2015 02:49:13 +0000 (22:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jul 2015 01:37:32 +0000 (18:37 -0700)
commitd684779335856d8177514b42a801d46088d897b0
tree2cd89c4fe5cb8317b6ae6aaf6322775d7439d689
parentfb6edc9115f7eb8265fb9282703e52738d397506
pty: Add debug message for ptmx open

Opens of /dev/ptmx don't use tty_open() so debug messages are
not printed for those opens; print a debug message with the
open count (which must always be 1) if TTY_DEBUG_HANGUP is defined.

NB: Each tty core source file undefs support for debug messages.
The relevant source file must be patched/edited to enable these
messages.

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