* [PATCH v2 1/1] staging: comedi: use __func__ instead of hardcoded function name
@ 2017-04-30 10:10 Dhiru Kholia
0 siblings, 0 replies; only message in thread
From: Dhiru Kholia @ 2017-04-30 10:10 UTC (permalink / raw)
To: LKML; +Cc: Ian Abbott, H Hartley Sweeten, Joe Perches
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. This patch also uses a more common logging
format.
Signed-off-by: Dhiru Kholia <dhiru.kholia@gmail.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..6df1171 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");
+ "%s: loop limit reached\n", __func__);
s->async->events |= COMEDI_CB_ERROR;
}
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-04-30 10:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-30 10:10 [PATCH v2 1/1] staging: comedi: use __func__ instead of hardcoded function name Dhiru Kholia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).