Skip to content

Commit

Permalink
tty: tty_mutex.c: Fixed coding style warning (using printk)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sangho Yi authored and Greg Kroah-Hartman committed Oct 24, 2012
1 parent 8ae763c commit 7a0c4ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/tty/tty_mutex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 7a0c4ed

Please sign in to comment.