Commit 38614ed8 authored by Eisha Chen-yen-su's avatar Eisha Chen-yen-su Committed by Greg Kroah-Hartman

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: default avatarEisha Chen-yen-su <chenyensu0@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4f7b006f
...@@ -1965,7 +1965,8 @@ static void ni_cmd_set_mite_transfer(struct mite_ring *ring, ...@@ -1965,7 +1965,8 @@ static void ni_cmd_set_mite_transfer(struct mite_ring *ring,
if (nbytes > sdev->async->prealloc_bufsz) { if (nbytes > sdev->async->prealloc_bufsz) {
if (cmd->stop_arg > 0) if (cmd->stop_arg > 0)
dev_err(sdev->device->class_dev, 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 * 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, ...@@ -1978,7 +1979,8 @@ static void ni_cmd_set_mite_transfer(struct mite_ring *ring,
mite_init_ring_descriptors(ring, sdev, nbytes); mite_init_ring_descriptors(ring, sdev, nbytes);
#else #else
dev_err(sdev->device->class_dev, 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 #endif
} }
...@@ -4687,7 +4689,7 @@ static int cs5529_do_conversion(struct comedi_device *dev, ...@@ -4687,7 +4689,7 @@ static int cs5529_do_conversion(struct comedi_device *dev,
retval = cs5529_wait_for_idle(dev); retval = cs5529_wait_for_idle(dev);
if (retval) { if (retval) {
dev_err(dev->class_dev, dev_err(dev->class_dev,
"timeout or signal in cs5529_do_conversion()\n"); "timeout or signal in %s()\n", __func__);
return -ETIME; return -ETIME;
} }
status = ni_ao_win_inw(dev, NI67XX_CAL_STATUS_REG); status = ni_ao_win_inw(dev, NI67XX_CAL_STATUS_REG);
......
...@@ -248,7 +248,7 @@ static irqreturn_t daqp_interrupt(int irq, void *dev_id) ...@@ -248,7 +248,7 @@ static irqreturn_t daqp_interrupt(int irq, void *dev_id)
if (loop_limit <= 0) { if (loop_limit <= 0) {
dev_warn(dev->class_dev, 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; s->async->events |= COMEDI_CB_ERROR;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment