Module Name: src
Committed By: jruoho
Date: Fri Apr 9 15:45:59 UTC 2010
Modified Files:
src/sys/dev/acpi: dalb_acpi.c
Log Message:
Use ACPI_DEBUG_PRINT instead of a local DPRINTF.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/acpi/dalb_acpi.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/acpi/dalb_acpi.c
diff -u src/sys/dev/acpi/dalb_acpi.c:1.10 src/sys/dev/acpi/dalb_acpi.c:1.11
--- src/sys/dev/acpi/dalb_acpi.c:1.10 Mon Mar 8 11:39:42 2010
+++ src/sys/dev/acpi/dalb_acpi.c Fri Apr 9 15:45:59 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: dalb_acpi.c,v 1.10 2010/03/08 11:39:42 jruoho Exp $ */
+/* $NetBSD: dalb_acpi.c,v 1.11 2010/04/09 15:45:59 jruoho Exp $ */
/*-
* Copyright (c) 2008 Christoph Egger <[email protected]>
@@ -27,7 +27,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dalb_acpi.c,v 1.10 2010/03/08 11:39:42 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dalb_acpi.c,v 1.11 2010/04/09 15:45:59 jruoho Exp $");
/*
* Direct Application Launch Button:
@@ -75,12 +75,6 @@
NULL
};
-#ifdef DEBUG
-#define DPRINTF(x) printf x
-#else
-#define DPRINTF(x)
-#endif
-
#define DALB_SYSTEM_WAKEUP 0x02
#define DALB_SYSTEM_RUNTIME 0x80
@@ -238,8 +232,11 @@
if (!sc->sc_smpsw_valid)
return;
- DPRINTF(("%s: %s: invoking sysmon_pswitch_event\n",
+
+ ACPI_DEBUG_PRINT((ACPI_DB_INFO,
+ "%s: %s: invoking sysmon_pswitch_event\n",
sc->sc_smpsw.smpsw_name, __func__));
+
sysmon_pswitch_event(&sc->sc_smpsw, PSWITCH_EVENT_PRESSED);
}
@@ -251,8 +248,11 @@
if (!sc->sc_smpsw_valid)
return;
- DPRINTF(("%s: %s: invoking sysmon_pswitch_event\n",
+
+ ACPI_DEBUG_PRINT((ACPI_DB_INFO,
+ "%s: %s: invoking sysmon_pswitch_event\n",
sc->sc_smpsw.smpsw_name, __func__));
+
sysmon_pswitch_event(&sc->sc_smpsw, PSWITCH_EVENT_PRESSED);
}