summaryrefslogtreecommitdiff
path: root/source/include/acoutput.h
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2025-01-03 21:49:36 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2025-01-03 21:49:36 +0000
commite690145f81b961a622efa7bc04fd83caba2a769d (patch)
tree4b8a893d9d971026929e9a8230c062ffe7a2b44a /source/include/acoutput.h
parentb6246dbb668a788f8022fc34f5577de42b386a0f (diff)
Import ACPICA 20240827vendor/acpica/20240827
Diffstat (limited to 'source/include/acoutput.h')
-rw-r--r--source/include/acoutput.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/include/acoutput.h b/source/include/acoutput.h
index 6e1b317d8ce7..c270d2c83277 100644
--- a/source/include/acoutput.h
+++ b/source/include/acoutput.h
@@ -336,6 +336,7 @@
*/
#ifndef ACPI_NO_ERROR_MESSAGES
#define AE_INFO _AcpiModuleName, __LINE__
+#define ACPI_ONCE(_fn, _plist) { static char _done; if (!_done) { _done = 1; _fn _plist; } }
/*
* Error reporting. Callers module and line number are inserted by AE_INFO,
@@ -344,8 +345,10 @@
*/
#define ACPI_INFO(plist) AcpiInfo plist
#define ACPI_WARNING(plist) AcpiWarning plist
+#define ACPI_WARNING_ONCE(plist) ACPI_ONCE(AcpiWarning, plist)
#define ACPI_EXCEPTION(plist) AcpiException plist
#define ACPI_ERROR(plist) AcpiError plist
+#define ACPI_ERROR_ONCE(plist) ACPI_ONCE(AcpiError, plist)
#define ACPI_BIOS_WARNING(plist) AcpiBiosWarning plist
#define ACPI_BIOS_EXCEPTION(plist) AcpiBiosException plist
#define ACPI_BIOS_ERROR(plist) AcpiBiosError plist
@@ -357,8 +360,10 @@
#define ACPI_INFO(plist)
#define ACPI_WARNING(plist)
+#define ACPI_WARNING_ONCE(plist)
#define ACPI_EXCEPTION(plist)
#define ACPI_ERROR(plist)
+#define ACPI_ERROR_ONCE(plist)
#define ACPI_BIOS_WARNING(plist)
#define ACPI_BIOS_EXCEPTION(plist)
#define ACPI_BIOS_ERROR(plist)