Commit c763aefe authored by Onkarnath's avatar Onkarnath Committed by Rafael J. Wysocki
Browse files

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: default avatarManinder Singh <maninder1.s@samsung.com>
Signed-off-by: default avatarManinder Singh <maninder1.s@samsung.com>
Signed-off-by: default avatarOnkarnath <onkarnath.1@samsung.com>
Reviewed-by: default avatarStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 841c3516
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ void __init acpi_watchdog_init(void)
	pdev = platform_device_register_simple("wdat_wdt", PLATFORM_DEVID_NONE,
					       resources, nresources);
	if (IS_ERR(pdev))
		pr_err("Device creation failed: %ld\n", PTR_ERR(pdev));
		pr_err("Device creation failed: %pe\n", pdev);

	kfree(resources);

+1 −1
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ register_slot(acpi_handle handle, u32 lvl, void *context, void **rv)
	snprintf(name, sizeof(name), "%llu", sun);
	pci_slot = pci_create_slot(pci_bus, device, name, NULL);
	if (IS_ERR(pci_slot)) {
		pr_err("pci_create_slot returned %ld\n", PTR_ERR(pci_slot));
		pr_err("pci_create_slot returned %pe\n", pci_slot);
		kfree(slot);
		return AE_OK;
	}