]> git.baikalelectronics.ru Git - kernel.git/commit
iio: imu: bmi160_i2c: Use vsprintf extension %pe for symbolic error name
authorNishant Malpani <nish.malpani25@gmail.com>
Sun, 22 Mar 2020 17:23:09 +0000 (22:53 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:16 +0000 (16:56 +0100)
commit8883b75d094959730b3cae4dc74808bea492b9aa
tree606e719b31eec89010cf0a38274fbe8726e36825
parent50fc8b1fce791fccab7f004acd5fdca3c9c98e4d
iio: imu: bmi160_i2c: 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_i2c.c