summaryrefslogtreecommitdiff
path: root/sys/dev/ic/sili.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-04-05 10:00:03 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-04-05 10:00:03 +0000
commit92d02aa0671f9f628f5aa047b05d54751a6afaf3 (patch)
treeb4173611edbd31ed1cc745403b5f07e26a84e26b /sys/dev/ic/sili.c
parent1183bd2d6d65312300b4b70858955b3da2503d30 (diff)
DPRINTF will be useful soon, so stick it in
Diffstat (limited to 'sys/dev/ic/sili.c')
-rw-r--r--sys/dev/ic/sili.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/dev/ic/sili.c b/sys/dev/ic/sili.c
index 7ea76e4aedc..f81198cf8b7 100644
--- a/sys/dev/ic/sili.c
+++ b/sys/dev/ic/sili.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sili.c,v 1.7 2007/04/04 12:42:23 dlg Exp $ */
+/* $OpenBSD: sili.c,v 1.8 2007/04/05 10:00:02 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -31,6 +31,18 @@
#include <dev/ic/silireg.h>
#include <dev/ic/silivar.h>
+#define SILI_DEBUG
+
+#ifdef SILI_DEBUG
+#define SILI_D_VERBOSE (1<<0)
+
+int silidebug = SILI_D_VERBOSE;
+
+#define DPRINTF(m, a...) do { if ((m) & silidebug) printf(a); } while (0)
+#else
+#define DPRINTF(m, a...)
+#endif
+
struct cfdriver sili_cd = {
NULL, "sili", DV_DULL
};