diff options
-rw-r--r-- | sys/dev/ic/sili.c | 14 |
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 }; |