summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi_button.c
diff options
context:
space:
mode:
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