[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1493484468-25699-1-git-send-email-dhiru.kholia@gmail.com>
Date: Sat, 29 Apr 2017 22:17:48 +0530
From: Dhiru Kholia <dhiru.kholia@...il.com>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Ian Abbott <abbotti@....co.uk>,
H Hartley Sweeten <hsweeten@...ionengravers.com>
Subject: [PATCH 1/1] staging: comedi: use __func__ instead of hardcoded function name
This coding style issue was found by checkpatch.pl script. Using
__func__ instead of hardcoded function name should help in future
refactoring of this code.
Signed-off-by: Dhiru Kholia <dhiru.kholia@...il.com>
---
drivers/staging/comedi/drivers/quatech_daqp_cs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/comedi/drivers/quatech_daqp_cs.c b/drivers/staging/comedi/drivers/quatech_daqp_cs.c
index 802f51e..ea194aa 100644
--- a/drivers/staging/comedi/drivers/quatech_daqp_cs.c
+++ b/drivers/staging/comedi/drivers/quatech_daqp_cs.c
@@ -248,7 +248,7 @@ static irqreturn_t daqp_interrupt(int irq, void *dev_id)
if (loop_limit <= 0) {
dev_warn(dev->class_dev,
- "loop_limit reached in daqp_interrupt()\n");
+ "loop_limit reached in %s()\n", __func__);
s->async->events |= COMEDI_CB_ERROR;
}
--
2.7.4
Powered by blists - more mailing lists