提交 5e2d9e91 编写于 作者: B Bob Moore 提交者: Rafael J. Wysocki

ACPICA: Update error message for field beyond buffer case

ACPICA commit 7a6b9c0b31cfb1606a6348404fee670b2d18743c

Improve/clarify the problem of a field definition beyond the limit
of the target buffer.

Link: https://github.com/acpica/acpica/commit/7a6b9c0bSigned-off-by: NBob Moore <robert.moore@intel.com>
Signed-off-by: NLv Zheng <lv.zheng@intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 861ba635
...@@ -227,13 +227,12 @@ acpi_ds_init_buffer_field(u16 aml_opcode, ...@@ -227,13 +227,12 @@ acpi_ds_init_buffer_field(u16 aml_opcode,
/* 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) > (8 * (u32) buffer_desc->buffer.length)) { if ((bit_offset + bit_count) > (8 * (u32)buffer_desc->buffer.length)) {
ACPI_ERROR((AE_INFO, ACPI_ERROR((AE_INFO,
"Field [%4.4s] at %u exceeds Buffer [%4.4s] size %u (bits)", "Field [%4.4s] at bit offset/length %u/%u "
acpi_ut_get_node_name(result_desc), "exceeds size of target Buffer (%u bits)",
bit_offset + bit_count, acpi_ut_get_node_name(result_desc), bit_offset,
acpi_ut_get_node_name(buffer_desc->buffer.node), bit_count, 8 * (u32)buffer_desc->buffer.length));
8 * (u32) buffer_desc->buffer.length));
status = AE_AML_BUFFER_LIMIT; status = AE_AML_BUFFER_LIMIT;
goto cleanup; goto cleanup;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册