From f3dadd29f7197d93d0441391f5e3815bf008cce1 Mon Sep 17 00:00:00 2001 From: Roberta Dobrescu Date: Sun, 14 Sep 2014 23:13:20 +0300 Subject: [PATCH] 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 Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- drivers/staging/dgnc/dgnc_tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_tty.c b/drivers/staging/dgnc/dgnc_tty.c index 6231ba06669b..3857b53f22d8 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; } -- 2.30.2