staging: comedi: Use '"%s:", __func__' instead of function name
authorEisha Chen-yen-su <chenyensu0@gmail.com>
Sun, 18 Feb 2018 13:27:07 +0000 (14:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Feb 2018 16:57:43 +0000 (17:57 +0100)
Replace an occurrence of the function name in a string by a reference
to __func__, to improve robustness. Problem found with checkpatch.

Signed-off-by: Eisha Chen-yen-su <chenyensu0@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/s626.c

index 0b3cfe934e14a679d64d2d96da03063074378341..ec54dc3e9ad6a7bb541db4d7b54f38775af354dd 100644 (file)
@@ -1700,7 +1700,7 @@ static int s626_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
 
        if (devpriv->ai_cmd_running) {
                dev_err(dev->class_dev,
-                       "s626_ai_cmd: Another ai_cmd is running\n");
+                       "%s: Another ai_cmd is running\n", __func__);
                return -EBUSY;
        }
        /* disable interrupt */