summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2007-04-05 10:00:02 +0000
committerdlg <dlg@openbsd.org>2007-04-05 10:00:02 +0000
commit6eba3e63ad836e858c8f53eae7930e240699e5bd (patch)
tree8822205539fbf71dbfc81203762d7e599e177412
parentcontrol bits in the prb. shuffle things around a bit... (diff)
downloadwireguard-openbsd-6eba3e63ad836e858c8f53eae7930e240699e5bd.tar.xz
wireguard-openbsd-6eba3e63ad836e858c8f53eae7930e240699e5bd.zip
DPRINTF will be useful soon, so stick it in
-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
};