iio: imu: bmi160_spi: Use vsprintf extension %pe for symbolic error name
authorNishant Malpani <nish.malpani25@gmail.com>
Sun, 22 Mar 2020 17:23:10 +0000 (22:53 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:17 +0000 (16:56 +0100)
commit35c9c8d5ec0734f6044d21a46e97d879d40dd12b
tree69128713a2559590ff93e4f671424260b3bb060a
parent6e924c526a32b352b2ce10fc847c8ed593506c6c
iio: imu: bmi160_spi: 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/imu/bmi160/bmi160_spi.c