summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-09-28 17:34:30 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-09-29 08:41:53 +0200
commit12d74001d52911dfb96d81b774183aeaba21370c (patch)
treef5af209ec784ab4bf486d55fdf7b870d17b2a7f4 /drivers/misc
parent91084b450226f22a8c6fee5a5762a4d0f44a18f4 (diff)
downloadbarebox-12d74001d52911dfb96d81b774183aeaba21370c.tar.gz
barebox-12d74001d52911dfb96d81b774183aeaba21370c.tar.xz
vsprintf: retire strerrorp in favor of %pe
strerrorp() is only used along with printf. We now have a format specifier for printing error pointers directly, so use that and remove strerrorp. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/acpi-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/acpi-test.c b/drivers/misc/acpi-test.c
index 970b435a0e..1d6814ebcf 100644
--- a/drivers/misc/acpi-test.c
+++ b/drivers/misc/acpi-test.c
@@ -29,7 +29,7 @@ static int acpi_test_probe(struct device_d *dev)
sdt = (u8 __force *)dev_request_mem_region_by_name(dev, "SDT");
if (IS_ERR(sdt)) {
- dev_err(dev, "no SDT resource available: %s\n", strerrorp(sdt));
+ dev_err(dev, "no SDT resource available: %pe\n", sdt);
return PTR_ERR(sdt);
}