From: Abhishek Bhardwaj <abshkbh@xxxxxxxxx> Use __func__ to print dgnc_tty_send_xchar function name. Signed-off-by: Abhishek Bhardwaj <abshkbh@xxxxxxxxx> --- 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 cde00e3702fa..3d2274f68ac6 100644 --- a/drivers/staging/dgnc/dgnc_tty.c +++ b/drivers/staging/dgnc/dgnc_tty.c @@ -1862,13 +1862,13 @@ static void dgnc_tty_send_xchar(struct tty_struct *tty, char c) if (!bd || bd->magic != DGNC_BOARD_MAGIC) return; - dev_dbg(tty->dev, "dgnc_tty_send_xchar start\n"); + dev_dbg(tty->dev, "%s start\n", __func__); spin_lock_irqsave(&ch->ch_lock, flags); bd->bd_ops->send_immediate_char(ch, c); spin_unlock_irqrestore(&ch->ch_lock, flags); - dev_dbg(tty->dev, "dgnc_tty_send_xchar finish\n"); + dev_dbg(tty->dev, "%s finish\n", __func__); } /* Return modem signals to ld. */ -- 2.12.0.367.g23dc2f6d3c-goog _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel