diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-07-14 02:32:15 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-07-14 02:32:15 +0000 |
commit | 0669d6443a01afc0cf8812a9927c42361f0cb6d1 (patch) | |
tree | b0108a9bb0d482fba6f83e53f0792472a2b1f9e7 /sys/dev | |
parent | e30611c50baccdd3136f4baf347ea136b74bd460 (diff) |
debug message macros.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_xge.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/dev/pci/if_xge.c b/sys/dev/pci/if_xge.c index cadbbd8e99a..e5b31e889ab 100644 --- a/sys/dev/pci/if_xge.c +++ b/sys/dev/pci/if_xge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_xge.c,v 1.25 2006/06/21 07:15:58 brad Exp $ */ +/* $OpenBSD: if_xge.c,v 1.26 2006/07/14 02:32:14 brad Exp $ */ /* $NetBSD: if_xge.c,v 1.1 2005/09/09 10:30:27 ragge Exp $ */ /* @@ -182,6 +182,17 @@ struct xge_softc { int sc_nextrx; /* next descriptor to check */ }; +#define XGE_DEBUG + +#ifdef XGE_DEBUG +#define DPRINTF(x) if (xgedebug) printf x +#define DPRINTFN(n,x) if (xgedebug >= (n)) printf x +int xgedebug = 0; +#else +#define DPRINTF(x) +#define DPRINTFN(n,x) +#endif + int xge_match(struct device *, void *, void *); void xge_attach(struct device *, struct device *, void *); int xge_alloc_txmem(struct xge_softc *); |