summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorjmcneill <jmcneill@NetBSD.org>2015-01-02 21:55:31 +0000
committerjmcneill <jmcneill@NetBSD.org>2015-01-02 21:55:31 +0000
commit443b99a83af1a608c5bbeaffd2b609f66d2bf37d (patch)
tree73680b102a10b1ea32b1a40d911faa9f52493ec3 /sys/dev
parent5326aa6eff4b6da27166a62e129cd2965a5ecc4d (diff)
disable ACT_DEBUG, but still print current state at attach
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/i2c/act8846.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/i2c/act8846.c b/sys/dev/i2c/act8846.c
index 2f13d79784a..2ec6f05c334 100644
--- a/sys/dev/i2c/act8846.c
+++ b/sys/dev/i2c/act8846.c
@@ -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>
@@ -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 @@ act8846_attach(device_t parent, device_t self, void *aux)
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