Staging: comedi: comedi_fops: fix dev_err() warning style
authorBryan Garza <bry@riseup.net>
Wed, 23 Aug 2017 22:37:00 +0000 (22:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Aug 2017 23:26:10 +0000 (16:26 -0700)
Changed dev_err() call to use function name constant instead of hardcoded
string. Issue found by checkpatch.

Signed-off-by: Bryan Garza <bry@riseup.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c

index 34ca7823255d692d05aa753e7c5bc28a385c5583..e19e395b0e440622dda2f5acfee98573922d25f1 100644 (file)
@@ -745,7 +745,7 @@ static void do_become_nonbusy(struct comedi_device *dev,
                wake_up_interruptible_all(&async->wait_head);
        } else {
                dev_err(dev->class_dev,
-                       "BUG: (?) do_become_nonbusy called with async=NULL\n");
+                       "BUG: (?) %s called with async=NULL\n", __func__);
                s->busy = NULL;
        }
 }