lkml.org 
[lkml]   [2020]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 00/13] Use vsprintf extension %pe for symbolic error
Date
This patchset utilizes %pe format specifier from vsprintf while logging
errors which removes unnecessary explicit casting and logs symbolic error
names instead of the error number.

Suggested-by: Joe Perches <joe@perches.com>
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Suggested-by: Jonathan Cameron <jic23@kernel.org>

[1] https://marc.info/?l=linux-iio&m=158427554607223&w=2
[2] https://marc.info/?l=linux-iio&m=158481647605891&w=2

Changes in v2:
- Rewrite commit subject line outlining the usage of %pe.
- Add a separator between regmap and its error name.

Nishant Malpani (13):
iio: accel: kxsd9: Use vsprintf extension %pe for symbolic error name
iio: st_sensors_i2c: Use vsprintf extension %pe for symbolic error
name
iio: st_sensors_spi: Use vsprintf extension %pe for symbolic error
name
iio: gyro: bmg160_i2c: Use vsprintf extension %pe for symbolic error
name
iio: gyro: bmg160_spi: Use vsprintf extension %pe for symbolic error
name
iio: gyro: mpu3050: Use vsprintf extension %pe for symbolic error name
iio: imu: bmi160_i2c: Use vsprintf extension %pe for symbolic error
name
iio: imu: bmi160_spi: Use vsprintf extension %pe for symbolic error
name
iio: imu: inv_mpu6050_i2c: Use vsprintf extension %pe for symbolic
error name
iio: imu: inv_mpu6050_spi: Use vsprintf extension %pe for symbolic
error name
iio: light: st_uvis25_i2c: Use vsprintf extension %pe for symbolic
error name
iio: light: st_uvis25_spi: Use vsprintf extension %pe for symbolic
error name
iio: magn: bmc150: Use vsprintf extension %pe for symbolic error name

drivers/iio/accel/kxsd9-i2c.c | 4 ++--
drivers/iio/common/st_sensors/st_sensors_i2c.c | 4 ++--
drivers/iio/common/st_sensors/st_sensors_spi.c | 4 ++--
drivers/iio/gyro/bmg160_i2c.c | 4 ++--
drivers/iio/gyro/bmg160_spi.c | 4 ++--
drivers/iio/gyro/mpu3050-i2c.c | 4 ++--
drivers/iio/imu/bmi160/bmi160_i2c.c | 4 ++--
drivers/iio/imu/bmi160/bmi160_spi.c | 4 ++--
drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c | 4 ++--
drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c | 4 ++--
drivers/iio/light/st_uvis25_i2c.c | 4 ++--
drivers/iio/light/st_uvis25_spi.c | 4 ++--
drivers/iio/magnetometer/bmc150_magn_spi.c | 4 ++--
13 files changed, 26 insertions(+), 26 deletions(-)

--
2.20.1

\
 
 \ /
  Last update: 2020-03-22 18:24    [W:0.074 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site