提交 f26f5c8b 编写于 作者: R Rafael J. Wysocki

ACPI / bus: Use acpi_handle_debug() in acpi_print_osc_error()

acpi_print_osc_error() basically duplicates the functionalit of
acpi_handle_debug(), so use that one in there.

While at it, convert the explicit KERN_DEBUG prints to pr_debug()
(and apply it to continuation messages too).
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 33688abb
...@@ -176,20 +176,15 @@ EXPORT_SYMBOL_GPL(acpi_bus_detach_private_data); ...@@ -176,20 +176,15 @@ EXPORT_SYMBOL_GPL(acpi_bus_detach_private_data);
static void acpi_print_osc_error(acpi_handle handle, static void acpi_print_osc_error(acpi_handle handle,
struct acpi_osc_context *context, char *error) struct acpi_osc_context *context, char *error)
{ {
struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER};
int i; int i;
if (ACPI_FAILURE(acpi_get_name(handle, ACPI_FULL_PATHNAME, &buffer))) acpi_handle_debug(handle, "(%s): %s\n", context->uuid_str, error);
printk(KERN_DEBUG "%s: %s\n", context->uuid_str, error);
else { pr_debug("_OSC request data:");
printk(KERN_DEBUG "%s (%s): %s\n",
(char *)buffer.pointer, context->uuid_str, error);
kfree(buffer.pointer);
}
printk(KERN_DEBUG "_OSC request data:");
for (i = 0; i < context->cap.length; i += sizeof(u32)) for (i = 0; i < context->cap.length; i += sizeof(u32))
printk(" %x", *((u32 *)(context->cap.pointer + i))); pr_debug(" %x", *((u32 *)(context->cap.pointer + i)));
printk("\n");
pr_debug("\n");
} }
acpi_status acpi_str_to_uuid(char *str, u8 *uuid) acpi_status acpi_str_to_uuid(char *str, u8 *uuid)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册