]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ACPICA: Add error msg for Index/Bank field registers out-of-range
authorBob Moore <robert.moore@intel.com>
Mon, 28 Nov 2011 02:10:10 +0000 (10:10 +0800)
committerLen Brown <len.brown@intel.com>
Tue, 17 Jan 2012 08:36:26 +0000 (03:36 -0500)
Supplement the exception code with an actual message.

Found during ACPICA debugging.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/acpica/exfldio.c

index f915a7f3f921ea6fd43d195425cb9783946cae60..19df8ce66ee73132cb8cf4fbad64da6d5c945b0c 100644 (file)
@@ -316,6 +316,7 @@ acpi_ex_access_region(union acpi_operand_object *obj_desc,
 static u8
 acpi_ex_register_overflow(union acpi_operand_object *obj_desc, u64 value)
 {
+       ACPI_FUNCTION_NAME(ex_register_overflow);
 
        if (obj_desc->common_field.bit_length >= ACPI_INTEGER_BIT_SIZE) {
                /*
@@ -330,6 +331,11 @@ acpi_ex_register_overflow(union acpi_operand_object *obj_desc, u64 value)
                 * The Value is larger than the maximum value that can fit into
                 * the register.
                 */
+               ACPI_ERROR((AE_INFO,
+                           "Index value 0x%8.8X%8.8X overflows field width 0x%X",
+                           ACPI_FORMAT_UINT64(value),
+                           obj_desc->common_field.bit_length));
+
                return (TRUE);
        }