diff options
-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 *); |