[PATCH v2 00/13] Use vsprintf extension %pe for symbolic error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
Suggested-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
Suggested-by: Jonathan Cameron <jic23@xxxxxxxxxx>

[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




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux