Skip to content

Commit

Permalink
platform/x86: wmi: Fix misuse of vsprintf extension %pULL
Browse files Browse the repository at this point in the history
%pULL doesn't officially exist but %pUL does.

Miscellanea:

o Add missing newlines to a couple logging messages

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Darren Hart (VMware) <[email protected]>
  • Loading branch information
JoePerches authored and dvhart committed Mar 1, 2018
1 parent 356b577 commit 501f7e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/platform/x86/wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ static int wmi_dev_probe(struct device *dev)
wblock->char_dev.mode = 0444;
ret = misc_register(&wblock->char_dev);
if (ret) {
dev_warn(dev, "failed to register char dev: %d", ret);
dev_warn(dev, "failed to register char dev: %d\n", ret);
ret = -ENOMEM;
goto probe_misc_failure;
}
Expand Down Expand Up @@ -1039,7 +1039,7 @@ static int wmi_create_device(struct device *wmi_bus_dev,

if (result) {
dev_warn(wmi_bus_dev,
"%s data block query control method not found",
"%s data block query control method not found\n",
method);
return result;
}
Expand Down Expand Up @@ -1189,7 +1189,7 @@ static int parse_wdg(struct device *wmi_bus_dev, struct acpi_device *device)

retval = device_add(&wblock->dev.dev);
if (retval) {
dev_err(wmi_bus_dev, "failed to register %pULL\n",
dev_err(wmi_bus_dev, "failed to register %pUL\n",
wblock->gblock.guid);
if (debug_event)
wmi_method_enable(wblock, 0);
Expand Down

0 comments on commit 501f7e5

Please sign in to comment.