Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi Use ACPI_DEBUG_PRINT instead of a local DPRINTF.



details:   https://anonhg.NetBSD.org/src/rev/7aca1ea2fea0
branches:  trunk
changeset: 753770:7aca1ea2fea0
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Fri Apr 09 15:45:59 2010 +0000

description:
Use ACPI_DEBUG_PRINT instead of a local DPRINTF.

diffstat:

 sys/dev/acpi/dalb_acpi.c |  20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diffs (57 lines):

diff -r 5e36b0673c99 -r 7aca1ea2fea0 sys/dev/acpi/dalb_acpi.c
--- a/sys/dev/acpi/dalb_acpi.c  Fri Apr 09 14:37:57 2010 +0000
+++ b/sys/dev/acpi/dalb_acpi.c  Fri Apr 09 15:45:59 2010 +0000
@@ -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 <cegger%netbsd.org@localhost>
@@ -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);
 }
 



Home | Main Index | Thread Index | Old Index