summaryrefslogtreecommitdiff
path: root/usr.sbin/acpidump/aml/aml_common.h
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2005-06-04 02:25:54 +0000
committerChad Loder <cloder@cvs.openbsd.org>2005-06-04 02:25:54 +0000
commitf55a888462678d374b01d4a2fed7f72e85384ae7 (patch)
tree5ccb3e0f06ff8d5da334a3bfeb05c126dd924891 /usr.sbin/acpidump/aml/aml_common.h
parent8fa93c8e129db89e65d6b737281a95b5c7444727 (diff)
Clean up gcc-isms. OK tholo
Diffstat (limited to 'usr.sbin/acpidump/aml/aml_common.h')
-rw-r--r--usr.sbin/acpidump/aml/aml_common.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/acpidump/aml/aml_common.h b/usr.sbin/acpidump/aml/aml_common.h
index 5ea32924a4a..24f3a7344da 100644
--- a/usr.sbin/acpidump/aml/aml_common.h
+++ b/usr.sbin/acpidump/aml/aml_common.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: aml_common.h,v 1.1 2005/06/02 20:09:39 tholo Exp $ */
+/* $OpenBSD: aml_common.h,v 1.2 2005/06/04 02:25:53 cloder Exp $ */
/*-
* Copyright (c) 2000 Mitsuru IWASAKI <iwasaki@FreeBSD.org>
* All rights reserved.
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: aml_common.h,v 1.1 2005/06/02 20:09:39 tholo Exp $
+ * $Id: aml_common.h,v 1.2 2005/06/04 02:25:53 cloder Exp $
* $FreeBSD: src/usr.sbin/acpi/amldb/aml/aml_common.h,v 1.4 2000/10/02 08:58:47 iwasaki Exp $
*/
@@ -46,6 +46,7 @@
AML_SYSABORT(); \
} \
} while(0)
+/* XXX: named variadic macros are a gcc-ism, and __VA_ARGS__ is C99-only */
#define AML_SYSERRX(eval, fmt, args...) do { \
printf(fmt, args); \
} while(0)
@@ -55,6 +56,7 @@
#else /* !_KERNEL */
#define AML_SYSASSERT(x) assert(x)
#define AML_SYSABORT() abort()
+/* XXX: named variadic macros are a gcc-ism, and __VA_ARGS__ is C99-only */
#define AML_SYSERRX(eval, fmt, args...) errx(eval, fmt, args)
#define AML_DEBUGGER(x, y) aml_dbgr(x, y)
#define AML_STALL(micro) /* not required in userland */
@@ -66,6 +68,7 @@ struct aml_name;
extern int aml_debug;
+/* XXX: named variadic macros are a gcc-ism, and __VA_ARGS__ is C99-only */
#define AML_DEBUGPRINT(args...) do { \
if (aml_debug) { \
printf(args); \