diff options
author | Kyle McMartin <kyle@mcmartin.ca> | 2010-11-26 22:58:39 -0500 |
---|---|---|
committer | Kyle McMartin <kyle@mcmartin.ca> | 2010-11-26 23:57:56 -0500 |
commit | ea17f5cd11149cf323198d4b896819a925357bca (patch) | |
tree | 6419e45032191cb8999db3822ec514125af87e16 /debug-tty-print-dev-name.patch | |
parent | e31d248b5c211bc2e8138f04fcd47e1db35cdf1f (diff) | |
download | kernel-ea17f5cd11149cf323198d4b896819a925357bca.tar.gz kernel-ea17f5cd11149cf323198d4b896819a925357bca.tar.xz kernel-ea17f5cd11149cf323198d4b896819a925357bca.zip |
Linux 2.6.37-rc3-git3
Diffstat (limited to 'debug-tty-print-dev-name.patch')
-rw-r--r-- | debug-tty-print-dev-name.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/debug-tty-print-dev-name.patch b/debug-tty-print-dev-name.patch index 9010b64fa..5c06dd991 100644 --- a/debug-tty-print-dev-name.patch +++ b/debug-tty-print-dev-name.patch @@ -1,15 +1,15 @@ -diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c -index 613c852..09c86d2 100644 +diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c +index 878f6d6..8d6867d 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) +@@ -1329,7 +1330,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); ++ printk("%s: !test_bit(TTY_LDISC, &tty->flags) dev=%s ldisc=%s flags=%x\n", ++ __func__, tty->name, tty->ldisc ? tty->ldisc->ops ? tty->ldisc->ops->name : NULL : NULL, tty->flags); + WARN_ON(1); + } mutex_unlock(&tty->ldisc_mutex); |