Skip to content

Commit c763aef

Browse files
Onkarnathrafaeljw
authored andcommitted
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 <maninder1.s@samsung.com> Signed-off-by: Maninder Singh <maninder1.s@samsung.com> Signed-off-by: Onkarnath <onkarnath.1@samsung.com> Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 841c351 commit c763aef

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/acpi/acpi_processor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static void cpufreq_add_device(const char *name)
161161

162162
pdev = platform_device_register_simple(name, PLATFORM_DEVID_NONE, NULL, 0);
163163
if (IS_ERR(pdev))
164-
pr_info("%s device creation failed: %ld\n", name, PTR_ERR(pdev));
164+
pr_info("%s device creation failed: %pe\n", name, pdev);
165165
}
166166

167167
#ifdef CONFIG_X86

drivers/acpi/acpi_watchdog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ void __init acpi_watchdog_init(void)
179179
pdev = platform_device_register_simple("wdat_wdt", PLATFORM_DEVID_NONE,
180180
resources, nresources);
181181
if (IS_ERR(pdev))
182-
pr_err("Device creation failed: %ld\n", PTR_ERR(pdev));
182+
pr_err("Device creation failed: %pe\n", pdev);
183183

184184
kfree(resources);
185185

drivers/acpi/pci_slot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ register_slot(acpi_handle handle, u32 lvl, void *context, void **rv)
111111
snprintf(name, sizeof(name), "%llu", sun);
112112
pci_slot = pci_create_slot(pci_bus, device, name, NULL);
113113
if (IS_ERR(pci_slot)) {
114-
pr_err("pci_create_slot returned %ld\n", PTR_ERR(pci_slot));
114+
pr_err("pci_create_slot returned %pe\n", pci_slot);
115115
kfree(slot);
116116
return AE_OK;
117117
}

0 commit comments

Comments
 (0)