[PATCH v2 2/2] acpi: Show _OSC UUID when _OSC fails

2015-12-15 Thread Andy Lutomirski
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 
Signed-off-by: Andy Lutomirski 
---
 drivers/acpi/bus.c | 5 +++--
 1 file 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,
int i;
 
if (ACPI_FAILURE(acpi_get_name(handle, ACPI_FULL_PATHNAME, )))
-   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:");
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v2 2/2] acpi: Show _OSC UUID when _OSC fails

2015-12-15 Thread Andy Lutomirski
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 
Signed-off-by: Andy Lutomirski 
---
 drivers/acpi/bus.c | 5 +++--
 1 file 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,
int i;
 
if (ACPI_FAILURE(acpi_get_name(handle, ACPI_FULL_PATHNAME, )))
-   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:");
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/