From: Armin Wolf Date: Tue, 6 Feb 2024 22:04:47 +0000 (+0100) Subject: platform/x86: wmi: Replace pr_err() with dev_err() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=fde7da1072f3c0239a80b590e7b75c9411e8b630;p=linux.git platform/x86: wmi: Replace pr_err() with dev_err() Using dev_err() allows users to find out from which device the error message came from. Signed-off-by: Armin Wolf Link: https://lore.kernel.org/r/20240206220447.3102-4-W_Armin@gmx.de Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen --- diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index be3e35a907038..57026f91c396b 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c @@ -1295,7 +1295,7 @@ static int acpi_wmi_probe(struct platform_device *device) error = parse_wdg(wmi_bus_dev, device); if (error) { - pr_err("Failed to parse WDG method\n"); + dev_err(&device->dev, "Failed to parse _WDG method\n"); return error; }