Skip to contentSkip to conversation

tty: tty_mutex.c: Fixed coding style warning (using printk)

PATCH New Sangho Yi 1 participant 1 message Oct 17, 2012 TTY layer and serial drivers

lore
Share & tools
lore

Sangho Yi

author
#0 lore raw

PATCH 1/1 tty: tty_mutex.c: Fixed coding style warning (using printk)

Here I fixed from printk(KERN_ERR, ... to pr_err(... on tty_mutex.c

---
 drivers/tty/tty_mutex.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/tty/tty_mutex.c +2 -2
index 67feac9..2e41abe 100644
@@ -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;
 	}
Signature · 1 line
1.7.9.5