From 30cd37d20ea308e753890a92034f220898546a9e Mon Sep 17 00:00:00 2001 From: Len Brown Date: Tue, 28 Oct 2003 12:07:38 -0500 Subject: [PATCH] [ACPI] REVERT ACPICA-20030918 CONFIG_ACPI_DEBUG printk that caused crash http://bugzilla.kernel.org/show_bug.cgi?id=1341 --- drivers/acpi/dispatcher/dsopcode.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/acpi/dispatcher/dsopcode.c b/drivers/acpi/dispatcher/dsopcode.c index 05730443cb50e..e31ac22e99f29 100644 --- a/drivers/acpi/dispatcher/dsopcode.c +++ b/drivers/acpi/dispatcher/dsopcode.c @@ -514,16 +514,14 @@ acpi_ds_init_buffer_field ( goto cleanup; } + /* Entire field must fit within the current length of the buffer */ if ((bit_offset + bit_count) > (8 * (u32) buffer_desc->buffer.length)) { ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, - "Field [%4.4s] size %d exceeds Buffer [%4.4s] size %d (bits)\n", - ((struct acpi_namespace_node *) result_desc)->name.ascii, - bit_offset + bit_count, - buffer_desc->buffer.node->name.ascii, - 8 * (u32) buffer_desc->buffer.length)); + "Field size %d exceeds Buffer size %d (bits)\n", + bit_offset + bit_count, 8 * (u32) buffer_desc->buffer.length)); status = AE_AML_BUFFER_LIMIT; goto cleanup; } -- 2.53.0