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)
commitf0bd45fea3ea9c73040228bc95dd9a2ca74b2b17
tree281f05110827f15204f02ca9fa82026c69c1df1f
parent1cfe38fc40e6d3d86e8fc88f9e2c080b9b38df3d
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