aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gplinclude
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-01-25 22:15:01 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-01-25 22:15:01 +0100
commit37d0e16d87fb520921f7465dc11d2726f6d6f163 (patch)
treecc61fba76eec3186085f3bf05b7f02b89931f33a /com32/gplinclude
parentfa047d0130b92c5088e186add7db57e94bab0371 (diff)
downloadsyslinux-37d0e16d87fb520921f7465dc11d2726f6d6f163.tar.gz
syslinux-37d0e16d87fb520921f7465dc11d2726f6d6f163.tar.xz
syslinux-37d0e16d87fb520921f7465dc11d2726f6d6f163.zip
ACPI: Adding DEBUG_PRINT
Adding a function to debug & print for ACPI.
Diffstat (limited to 'com32/gplinclude')
-rw-r--r--com32/gplinclude/acpi/acpi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/com32/gplinclude/acpi/acpi.h b/com32/gplinclude/acpi/acpi.h
index 664306b8..ed1bf9b2 100644
--- a/com32/gplinclude/acpi/acpi.h
+++ b/com32/gplinclude/acpi/acpi.h
@@ -12,6 +12,12 @@
#ifndef ACPI_H
#define ACPI_H
+
+#define DEBUG_ACPI 0
+
+void dbg_printf(const char *fmt, ...);
+#define DEBUG_PRINT(x) do { if (DEBUG_ACPI) dbg_printf x; } while (0)
+
#include <inttypes.h>
#include <stdbool.h>
#include <acpi/structs.h>