Skip to contentSkip to conversation

staging: comedi: use __func__ instead of hardcoded function name

PATCH New Dhiru Kholia 1 participant 1 message Apr 30, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH v2 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. This patch also uses a more common logging format.

---
 drivers/staging/comedi/drivers/quatech_daqp_cs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/comedi/drivers/quatech_daqp_cs.c +1 -1
index 802f51e..6df1171 100644
@@ -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;
 	}
 
Signature · 1 line
2.7.4