Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Simo Koskinen <koskisoft@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Simo Koskinen and committed by
Greg Kroah-Hartman
423a8a6e d894e25b

+2 -2
+2 -2
drivers/staging/comedi/drivers.c
··· 995 995 int ret; 996 996 997 997 if (!hardware_device) { 998 - pr_warn("BUG! comedi_auto_config called with NULL hardware_device\n"); 998 + pr_warn("BUG! %s called with NULL hardware_device\n", __func__); 999 999 return -EINVAL; 1000 1000 } 1001 1001 if (!driver) { 1002 1002 dev_warn(hardware_device, 1003 - "BUG! comedi_auto_config called with NULL comedi driver\n"); 1003 + "BUG! %s called with NULL comedi driver\n", __func__); 1004 1004 return -EINVAL; 1005 1005 } 1006 1006