tty: tty_mutex.c: Fixed coding style warning (using printk)
authorSangho Yi <antiroot@gmail.com>
Wed, 17 Oct 2012 15:15:13 +0000 (00:15 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Oct 2012 18:34:51 +0000 (11:34 -0700)
Here I fixed from printk(KERN_ERR, ... to pr_err(... on tty_mutex.c

Signed-off-by: Sangho Yi <antiroot@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_mutex.c

index 67feac9e6ebbef7e224c47672bff95f7f511c5a2..2e41abebbcbaef923c38a4ea6c3cee56dd6fe9fd 100644 (file)
@@ -19,7 +19,7 @@ static void __lockfunc tty_lock_nested(struct tty_struct *tty,
                                       unsigned int subclass)
 {
        if (tty->magic != TTY_MAGIC) {
-               printk(KERN_ERR "L Bad %p\n", tty);
+               pr_err("L Bad %p\n", tty);
                WARN_ON(1);
                return;
        }
@@ -36,7 +36,7 @@ EXPORT_SYMBOL(tty_lock);
 void __lockfunc tty_unlock(struct tty_struct *tty)
 {
        if (tty->magic != TTY_MAGIC) {
-               printk(KERN_ERR "U Bad %p\n", tty);
+               pr_err("U Bad %p\n", tty);
                WARN_ON(1);
                return;
        }