diff options
author | Roberta Dobrescu <roberta.dobrescu@gmail.com> | 2014-09-14 23:13:20 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-19 17:17:14 -0700 |
commit | f3dadd29f7197d93d0441391f5e3815bf008cce1 (patch) | |
tree | c5cac556ce7cd8dce9ee1b2868048eaee58c7638 | |
parent | 2be13f7b7c63cecc439876c8c06a5b30afdf46f9 (diff) | |
download | op-kernel-dev-f3dadd29f7197d93d0441391f5e3815bf008cce1.zip op-kernel-dev-f3dadd29f7197d93d0441391f5e3815bf008cce1.tar.gz |
staging: dgnc: Fix warnings relating to printk()
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>
-rw-r--r-- | drivers/staging/dgnc/dgnc_tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index 6231ba0..3857b53 100644 --- a/drivers/staging/dgnc/dgnc_tty.c +++ b/drivers/staging/dgnc/dgnc_tty.c @@ -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; } |