diff options
author | Andy Lutomirski <luto@kernel.org> | 2015-12-15 11:37:40 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-12-21 20:51:41 -0500 |
commit | 76c599bcab26795b0669694e1e32a78274cb901b (patch) | |
tree | 3070c77834bdbdd0b375b62144dc51c874edae06 | |
parent | 50fe763cc8fa00bef9ff78e58645dbfdcaa998da (diff) |
ACPI / bus: Show _OSC UUID when _OSC fails
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>
-rw-r--r-- | drivers/acpi/bus.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 2177ef0b16e4..fcfdf6cbc6a8 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c | |||
@@ -180,9 +180,10 @@ static void acpi_print_osc_error(acpi_handle handle, | |||
180 | int i; | 180 | int i; |
181 | 181 | ||
182 | if (ACPI_FAILURE(acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer))) | 182 | if (ACPI_FAILURE(acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer))) |
183 | printk(KERN_DEBUG "%s\n", error); | 183 | printk(KERN_DEBUG "%s: %s\n", context->uuid_str, error); |
184 | else { | 184 | else { |
185 | printk(KERN_DEBUG "%s: %s\n", (char *)buffer.pointer, error); | 185 | printk(KERN_DEBUG "%s (%s): %s\n", |
186 | (char *)buffer.pointer, context->uuid_str, error); | ||
186 | kfree(buffer.pointer); | 187 | kfree(buffer.pointer); |
187 | } | 188 | } |
188 | printk(KERN_DEBUG "_OSC request data:"); | 189 | printk(KERN_DEBUG "_OSC request data:"); |