staging: dgnc: Fix warnings relating to printk()
authorRoberta Dobrescu <roberta.dobrescu@gmail.com>
Sun, 14 Sep 2014 20:13:20 +0000 (23:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Sep 2014 00:17:14 +0000 (17:17 -0700)
This fixes the following checkpatch.pl warnings:
WARNING: printk() should include KERN_ facility level
It replaces printk() with dev_dbg() in order to avoid the warning that a more
specific function should be used.

Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_tty.c

index 6231ba0..3857b53 100644 (file)
@@ -2233,13 +2233,13 @@ static void dgnc_tty_send_xchar(struct tty_struct *tty, char c)
        if (!bd || bd->magic != DGNC_BOARD_MAGIC)
                return;
 
-       printk("dgnc_tty_send_xchar start\n");
+       dev_dbg(tty->dev, "dgnc_tty_send_xchar start\n");
 
        DGNC_LOCK(ch->ch_lock, lock_flags);
        bd->bd_ops->send_immediate_char(ch, c);
        DGNC_UNLOCK(ch->ch_lock, lock_flags);
 
-       printk("dgnc_tty_send_xchar finish\n");
+       dev_dbg(tty->dev, "dgnc_tty_send_xchar finish\n");
        return;
 }