Skip to contentSkip to conversation

staging: comedi: coding style fixes found by checkpatch.pl

PATCH New Simo Koskinen 1 participant 1 message Aug 28, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: comedi: coding style fixes found by checkpatch.pl

The patch removes "WARNING: Prefer using '"%s...", __func__' to using 'xxxxxxxx', this function's name, in a string" warnings reported by checkpatch.pl script.

---
 drivers/staging/comedi/drivers.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/comedi/drivers.c +2 -2
index a5bf2cc..0b43db6 100644
@@ -995,12 +995,12 @@ int comedi_auto_config(struct device *hardware_device,
 	int ret;
 
 	if (!hardware_device) {
-		pr_warn("BUG! comedi_auto_config called with NULL hardware_device\n");
+		pr_warn("BUG! %s called with NULL hardware_device\n", __func__);
 		return -EINVAL;
 	}
 	if (!driver) {
 		dev_warn(hardware_device,
-			 "BUG! comedi_auto_config called with NULL comedi driver\n");
+			 "BUG! %s called with NULL comedi driver\n", __func__);
 		return -EINVAL;
 	}
 
Signature · 1 line
2.7.4