lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <cover.1584897364.git.nish.malpani25@gmail.com>
Date:   Sun, 22 Mar 2020 22:53:02 +0530
From:   Nishant Malpani <nish.malpani25@...il.com>
To:     jic23@...nel.org
Cc:     andriy.shevchenko@...ux.intel.com, joe@...ches.com,
        knaack.h@....de, lars@...afoo.de, pmeerw@...erw.net,
        nish.malpani25@...il.com, linux-iio@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: [PATCH v2 00/13] Use vsprintf extension %pe for symbolic error

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@...ches.com>
Suggested-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Suggested-by: Jonathan Cameron <jic23@...nel.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ