summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpivar.h
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2001-11-18 18:12:07 +0000
committeriwasaki <iwasaki@FreeBSD.org>2001-11-18 18:12:07 +0000
commitd2ab0884a69fac77b1a551e9e41c7d368e542987 (patch)
tree682f9f7f9b26eb075230189b07724195bb044a6a /sys/dev/acpica/acpivar.h
parent41a88cc21ed205a347a753833646e12e0e9a03ba (diff)
downloadFreeBSD-src-d2ab0884a69fac77b1a551e9e41c7d368e542987.zip
FreeBSD-src-d2ab0884a69fac77b1a551e9e41c7d368e542987.tar.gz
Cleanups of verbose printing. All the messages for the debugging is
disabled unless verbose flag is set. Also fix some messages in terms of English. The critical messages and error messages in probe/attach routine are unchanged by this commit.
Diffstat (limited to 'sys/dev/acpica/acpivar.h')
-rw-r--r--sys/dev/acpica/acpivar.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h
index 64e8ceb..72c264e 100644
--- a/sys/dev/acpica/acpivar.h
+++ b/sys/dev/acpica/acpivar.h
@@ -227,6 +227,11 @@ extern void acpi_EnterDebugger(void);
#define STEP(x)
#endif
+#define ACPI_VPRINT(dev, acpi_sc, x...) do { \
+ if (acpi_get_verbose(acpi_sc)) \
+ device_printf(dev, x); \
+} while (0)
+
extern BOOLEAN acpi_DeviceIsPresent(device_t dev);
extern BOOLEAN acpi_MatchHid(device_t dev, char *hid);
extern ACPI_STATUS acpi_GetHandleInScope(ACPI_HANDLE parent, char *path, ACPI_HANDLE *result);
OpenPOWER on IntegriCloud