ACPICA: Add error msg for unsupported I/O requests (not 8/16/32 bit length)
authorBob Moore <robert.moore@intel.com>
Mon, 28 Nov 2011 02:08:03 +0000 (10:08 +0800)
committerLen Brown <len.brown@intel.com>
Tue, 17 Jan 2012 08:36:26 +0000 (03:36 -0500)
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/hwvalid.c

index 5f1605874655a2f425aa0c0abd79befcb9684a3c..f8fbea947013136ed78b15ae373972e5e02f6eb6 100644 (file)
@@ -134,6 +134,8 @@ acpi_hw_validate_io_request(acpi_io_address address, u32 bit_width)
        /* Supported widths are 8/16/32 */
 
        if ((bit_width != 8) && (bit_width != 16) && (bit_width != 32)) {
+               ACPI_ERROR((AE_INFO,
+                           "Bad BitWidth parameter: %8.8X", bit_width));
                return AE_BAD_PARAMETER;
        }