|
@@ -1836,7 +1836,7 @@ int tty_release(struct inode *inode, struct file *filp)
|
|
|
return 0;
|
|
|
|
|
|
#ifdef TTY_DEBUG_HANGUP
|
|
|
- printk(KERN_DEBUG "%s: freeing tty structure...\n", __func__);
|
|
|
+ printk(KERN_DEBUG "%s: %s: final close\n", __func__, tty_name(tty, buf));
|
|
|
#endif
|
|
|
/*
|
|
|
* Ask the line discipline code to release its structures
|
|
@@ -1848,6 +1848,9 @@ int tty_release(struct inode *inode, struct file *filp)
|
|
|
if (o_tty)
|
|
|
tty_flush_works(o_tty);
|
|
|
|
|
|
+#ifdef TTY_DEBUG_HANGUP
|
|
|
+ printk(KERN_DEBUG "%s: %s: freeing structure...\n", __func__, tty_name(tty, buf));
|
|
|
+#endif
|
|
|
/*
|
|
|
* The release_tty function takes care of the details of clearing
|
|
|
* the slots and preserving the termios structure. The tty_unlock_pair
|