]> git.baikalelectronics.ru Git - kernel.git/commit
iio: accel: kxsd9: Use vsprintf extension %pe for symbolic error name
authorNishant Malpani <nish.malpani25@gmail.com>
Sun, 22 Mar 2020 17:23:03 +0000 (22:53 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:15 +0000 (16:56 +0100)
commit529a495dd92d0ece2bf3e2875109bfd2d7f3247c
tree281f05110827f15204f02ca9fa82026c69c1df1f
parent7910ef94ee2ba2995ba5834ed9fc7b158ae62bbb
iio: accel: kxsd9: Use vsprintf extension %pe for symbolic error name

Utilize %pe format specifier from vsprintf while printing error logs
with dev_err(). Discards the use of unnecessary explicit casting and
prints symbolic error name which might prove to be convenient during
debugging.

Signed-off-by: Nishant Malpani <nish.malpani25@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/kxsd9-i2c.c