ACPICA: acpiexec/acpinames: Update for error checking macros
authorBob Moore <robert.moore@intel.com>
Tue, 29 Dec 2015 05:56:46 +0000 (13:56 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 1 Jan 2016 02:47:35 +0000 (03:47 +0100)
ACPICA commit 5bdfb4f43f4d315d23b31b39bac5a0b1ca420c2b

Standardize naming, deploy in common header.

Link: https://github.com/acpica/acpica/commit/5bdfb4f4
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/acapps.h

index 340350f55ea90377faab9fc1a5ffc2985d81c259..578e37f5cb27d4c74bb454bf4d6977cec055eb1c 100644 (file)
 #define ACPI_OPTION(name, description) \
        acpi_os_printf (" %-18s%s\n", name, description);
 
+/* Check for unexpected exceptions */
+
+#define ACPI_CHECK_STATUS(name, status, expected) \
+       if (status != expected) \
+       { \
+               acpi_os_printf ("Unexpected %s from %s (%s-%d)\n", \
+                       acpi_format_exception (status), #name, _acpi_module_name, __LINE__); \
+       }
+
+/* Check for unexpected non-AE_OK errors */
+
+#define ACPI_CHECK_OK(name, status)   ACPI_CHECK_STATUS (name, status, AE_OK);
+
 #define FILE_SUFFIX_DISASSEMBLY     "dsl"
 #define FILE_SUFFIX_BINARY_TABLE    ".dat"     /* Needs the dot */