summaryrefslogtreecommitdiff
path: root/source/include/acoutput.h
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2016-12-21 08:34:01 -0800
committerGitHub <noreply@github.com>2016-12-21 08:34:01 -0800
commit73b741b6055299f93d788fda15d134b5a228aec2 (patch)
tree340a5dfb83217a3e2013213abc6db1ddac2685f8 /source/include/acoutput.h
parentb7dae343fbb8c392999a66f5e08be5744a5d07e2 (diff)
parent93d652bbfca28ff825d7d472e2a10fdda3189d3d (diff)
downloadacpica-73b741b6055299f93d788fda15d134b5a228aec2.tar.gz
Merge pull request #196 from zetalog/acpica-trivial
Acpica trivial
Diffstat (limited to 'source/include/acoutput.h')
-rw-r--r--source/include/acoutput.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/include/acoutput.h b/source/include/acoutput.h
index 717a2c31c..39e09365c 100644
--- a/source/include/acoutput.h
+++ b/source/include/acoutput.h
@@ -302,10 +302,17 @@
* the plist contains a set of parens to allow variable-length lists.
* These macros are used for both the debug and non-debug versions of the code.
*/
+#if defined (ACPI_USE_DO_ONCE_MACRO) && defined (ACPI_DO_ONCE)
+#define ACPI_INFO(plist) ACPI_DO_ONCE(AcpiInfo plist)
+#define ACPI_WARNING(plist) ACPI_DO_ONCE(AcpiWarning plist)
+#define ACPI_EXCEPTION(plist) ACPI_DO_ONCE(AcpiException plist)
+#define ACPI_ERROR(plist) ACPI_DO_ONCE(AcpiError plist)
+#else
#define ACPI_INFO(plist) AcpiInfo plist
#define ACPI_WARNING(plist) AcpiWarning plist
#define ACPI_EXCEPTION(plist) AcpiException plist
#define ACPI_ERROR(plist) AcpiError plist
+#endif
#define ACPI_BIOS_WARNING(plist) AcpiBiosWarning plist
#define ACPI_BIOS_ERROR(plist) AcpiBiosError plist
#define ACPI_DEBUG_OBJECT(obj,l,i) AcpiExDoDebugObject(obj,l,i)