OSDN Git Service

iio: Replace printk in __iio_update_buffers with dev_dbg
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 13 May 2015 14:04:44 +0000 (16:04 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 17 May 2015 08:41:43 +0000 (09:41 +0100)
commit63223c5f5c11b832586edca28cfc7d2850bc3e44
treefcad1f3ae919d63ed01ea66cd9ef309e6bb990a7
parentb87b0c0f81e8d11c881b726b886b7502ab67d884
iio: Replace printk in __iio_update_buffers with dev_dbg

While more verbose error messages are useful for debugging we should really
not put those error messages into the kernel log for normal errors that are
already reported to the application via the error code, when running in
non-debug mode.

Otherwise application authors might expect that this is part of the ABI and
to get the error they should scan the kernel log. Which would be rather
error prone itself since there is no direct mapping between a operation and
the error message so it is impossible to find out which error message
belongs to which error.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-buffer.c