From e31d248b5c211bc2e8138f04fcd47e1db35cdf1f Mon Sep 17 00:00:00 2001 From: Kyle McMartin Date: Fri, 26 Nov 2010 17:05:38 -0500 Subject: copy tty debugging from rawhide --- debug-tty-print-dev-name.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 debug-tty-print-dev-name.patch (limited to 'debug-tty-print-dev-name.patch') diff --git a/debug-tty-print-dev-name.patch b/debug-tty-print-dev-name.patch new file mode 100644 index 00000000..9010b64f --- /dev/null +++ b/debug-tty-print-dev-name.patch @@ -0,0 +1,17 @@ +diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c +index 613c852..09c86d2 100644 +--- a/drivers/tty/tty_io.c ++++ b/drivers/tty/tty_io.c +@@ -1322,7 +1322,11 @@ static int tty_reopen(struct tty_struct *tty) + tty->driver = driver; /* N.B. why do this every time?? */ + + mutex_lock(&tty->ldisc_mutex); +- WARN_ON(!test_bit(TTY_LDISC, &tty->flags)); ++ if (!test_bit(TTY_LDISC, &tty->flags)) { ++ printk("%s: !test_bit(TTY_LDISC, &tty->flags) dev=%s ldisc=%s\n", ++ __func__, tty->name, tty->ldisc ? tty->ldisc->ops ? tty->ldisc->ops->name : NULL : NULL); ++ WARN_ON(1); ++ } + mutex_unlock(&tty->ldisc_mutex); + + return 0; -- cgit