Skip to content

Commit

Permalink
ACPI / bus: Show _OSC UUID when _OSC fails
Browse files Browse the repository at this point in the history
When _OSC fails and especially when it fails due to an invalid UUID,
it's helpful to show the UUID that we tried.

Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Andy Lutomirski authored and Rafael J. Wysocki committed Dec 22, 2015
1 parent 50fe763 commit 76c599b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/acpi/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,10 @@ static void acpi_print_osc_error(acpi_handle handle,
int i;

if (ACPI_FAILURE(acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer)))
printk(KERN_DEBUG "%s\n", error);
printk(KERN_DEBUG "%s: %s\n", context->uuid_str, error);
else {
printk(KERN_DEBUG "%s: %s\n", (char *)buffer.pointer, error);
printk(KERN_DEBUG "%s (%s): %s\n",
(char *)buffer.pointer, context->uuid_str, error);
kfree(buffer.pointer);
}
printk(KERN_DEBUG "_OSC request data:");
Expand Down

0 comments on commit 76c599b

Please sign in to comment.