staging: comedi: Use '"%s:", __func__' instead of function name

Replace all occurrences of functions' names in strings by a reference
to __func__, to improve robustness. Problem found with checkpatch.

Signed-off-by: Eisha Chen-yen-su <chenyensu0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Eisha Chen-yen-su 2018-02-20 10:05:25 +01:00 committed by Greg Kroah-Hartman
parent 4f7b006ff1
commit 38614ed802
2 changed files with 6 additions and 4 deletions

View File

@ -1965,7 +1965,8 @@ static void ni_cmd_set_mite_transfer(struct mite_ring *ring,
if (nbytes > sdev->async->prealloc_bufsz) {
if (cmd->stop_arg > 0)
dev_err(sdev->device->class_dev,
"ni_cmd_set_mite_transfer: tried exact data transfer limits greater than buffer size\n");
"%s: tried exact data transfer limits greater than buffer size\n",
__func__);
/*
* we can only transfer up to the size of the buffer. In this
@ -1978,7 +1979,8 @@ static void ni_cmd_set_mite_transfer(struct mite_ring *ring,
mite_init_ring_descriptors(ring, sdev, nbytes);
#else
dev_err(sdev->device->class_dev,
"ni_cmd_set_mite_transfer: exact data transfer limits not implemented yet without DMA\n");
"%s: exact data transfer limits not implemented yet without DMA\n",
__func__);
#endif
}
@ -4687,7 +4689,7 @@ static int cs5529_do_conversion(struct comedi_device *dev,
retval = cs5529_wait_for_idle(dev);
if (retval) {
dev_err(dev->class_dev,
"timeout or signal in cs5529_do_conversion()\n");
"timeout or signal in %s()\n", __func__);
return -ETIME;
}
status = ni_ao_win_inw(dev, NI67XX_CAL_STATUS_REG);

View File

@ -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");
"loop_limit reached in %s()\n", __func__);
s->async->events |= COMEDI_CB_ERROR;
}