summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_button.c
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/acpi_button.c
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/acpi_button.c')
-rw-r--r--sys/dev/acpica/acpi_button.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sys/dev/acpica/acpi_button.c b/sys/dev/acpica/acpi_button.c
index aa2fc78..b05c7d3 100644
--- a/sys/dev/acpica/acpi_button.c
+++ b/sys/dev/acpica/acpi_button.c
@@ -133,11 +133,13 @@ acpi_button_notify_pressed_for_sleep(void *arg)
switch (sc->button_type) {
case ACPI_POWER_BUTTON:
- device_printf(sc->button_dev, "power button pressed\n", sc->button_type);
+ ACPI_VPRINT(sc->button_dev, acpi_sc,
+ "power button pressed\n", sc->button_type);
acpi_eventhandler_power_button_for_sleep((void *)acpi_sc);
break;
case ACPI_SLEEP_BUTTON:
- device_printf(sc->button_dev, "sleep button pressed\n", sc->button_type);
+ ACPI_VPRINT(sc->button_dev, acpi_sc,
+ "sleep button pressed\n", sc->button_type);
acpi_eventhandler_sleep_button_for_sleep((void *)acpi_sc);
break;
default:
@@ -162,11 +164,13 @@ acpi_button_notify_pressed_for_wakeup(void *arg)
switch (sc->button_type) {
case ACPI_POWER_BUTTON:
- device_printf(sc->button_dev, "wakeup by power button\n", sc->button_type);
+ ACPI_VPRINT(sc->button_dev, acpi_sc,
+ "wakeup by power button\n", sc->button_type);
acpi_eventhandler_power_button_for_wakeup((void *)acpi_sc);
break;
case ACPI_SLEEP_BUTTON:
- device_printf(sc->button_dev, "wakeup by sleep button\n", sc->button_type);
+ ACPI_VPRINT(sc->button_dev, acpi_sc,
+ "wakeup by sleep button\n", sc->button_type);
acpi_eventhandler_sleep_button_for_wakeup((void *)acpi_sc);
break;
default:
OpenPOWER on IntegriCloud