From: Roberta Dobrescu Date: Sun, 14 Sep 2014 20:13:20 +0000 (+0300) Subject: staging: dgnc: Fix warnings relating to printk() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f3dadd29f7197d93d0441391f5e3815bf008cce1;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 --- 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; }