Commit 30cd37d2 authored by Len Brown's avatar Len Brown Committed by Len Brown

[ACPI] REVERT ACPICA-20030918 CONFIG_ACPI_DEBUG printk that caused crash

http://bugzilla.kernel.org/show_bug.cgi?id=1341
parent 85b9e494
...@@ -514,16 +514,14 @@ acpi_ds_init_buffer_field ( ...@@ -514,16 +514,14 @@ acpi_ds_init_buffer_field (
goto cleanup; goto cleanup;
} }
/* Entire field must fit within the current length of the buffer */ /* Entire field must fit within the current length of the buffer */
if ((bit_offset + bit_count) > if ((bit_offset + bit_count) >
(8 * (u32) buffer_desc->buffer.length)) { (8 * (u32) buffer_desc->buffer.length)) {
ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, ACPI_DEBUG_PRINT ((ACPI_DB_ERROR,
"Field [%4.4s] size %d exceeds Buffer [%4.4s] size %d (bits)\n", "Field size %d exceeds Buffer size %d (bits)\n",
((struct acpi_namespace_node *) result_desc)->name.ascii, bit_offset + bit_count, 8 * (u32) buffer_desc->buffer.length));
bit_offset + bit_count,
buffer_desc->buffer.node->name.ascii,
8 * (u32) buffer_desc->buffer.length));
status = AE_AML_BUFFER_LIMIT; status = AE_AML_BUFFER_LIMIT;
goto cleanup; goto cleanup;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment