Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/i2c disable ACT_DEBUG, but still print current state...



details:   https://anonhg.NetBSD.org/src/rev/cfe57bdc9263
branches:  trunk
changeset: 335315:cfe57bdc9263
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Jan 02 21:55:31 2015 +0000

description:
disable ACT_DEBUG, but still print current state at attach

diffstat:

 sys/dev/i2c/act8846.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r 3c0d97d9ce9d -r cfe57bdc9263 sys/dev/i2c/act8846.c
--- a/sys/dev/i2c/act8846.c     Fri Jan 02 21:32:26 2015 +0000
+++ b/sys/dev/i2c/act8846.c     Fri Jan 02 21:55:31 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: act8846.c,v 1.2 2015/01/01 17:59:18 jmcneill Exp $ */
+/* $NetBSD: act8846.c,v 1.3 2015/01/02 21:55:31 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2015 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -26,10 +26,10 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#define ACT_DEBUG
+//#define ACT_DEBUG
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: act8846.c,v 1.2 2015/01/01 17:59:18 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: act8846.c,v 1.3 2015/01/02 21:55:31 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -172,11 +172,9 @@
                sc->sc_ctrl[n].c_dev = self;
        }
 
-#ifdef ACT_DEBUG
        for (n = 0; n < sc->sc_nctrl; n++) {
                act8846_print(&sc->sc_ctrl[n]);
        }
-#endif
 }
 
 static int



Home | Main Index | Thread Index | Old Index