aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpi_processor.c
diff options
context:
space:
mode:
authorOnkarnath <[email protected]>2024-02-13 07:44:15 +0000
committerRafael J. Wysocki <[email protected]>2024-02-16 18:31:12 +0000
commitc763aefeeb3ebeb05efff3d204ffe8fa7872da8f (patch)
treefda231955bb4a1862138dc504e45c28130fa1065 /drivers/acpi/acpi_processor.c
parentLinux 6.8-rc4 (diff)
downloadkernel-c763aefeeb3ebeb05efff3d204ffe8fa7872da8f.tar.gz
kernel-c763aefeeb3ebeb05efff3d204ffe8fa7872da8f.zip
ACPI: use %pe for better readability of errors while printing
As %pe is already introduced, it's better to use it in place of (%ld) for printing errors in logs. It would enhance readability of logs. Co-developed-by: Maninder Singh <[email protected]> Signed-off-by: Maninder Singh <[email protected]> Signed-off-by: Onkarnath <[email protected]> Reviewed-by: Stanislaw Gruszka <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/acpi/acpi_processor.c')
-rw-r--r--drivers/acpi/acpi_processor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c
index 4fe2ef54088c..2ddd36a21850 100644
--- a/drivers/acpi/acpi_processor.c
+++ b/drivers/acpi/acpi_processor.c
@@ -161,7 +161,7 @@ static void cpufreq_add_device(const char *name)
pdev = platform_device_register_simple(name, PLATFORM_DEVID_NONE, NULL, 0);
if (IS_ERR(pdev))
- pr_info("%s device creation failed: %ld\n", name, PTR_ERR(pdev));
+ pr_info("%s device creation failed: %pe\n", name, pdev);
}
#ifdef CONFIG_X86