diff options
author | 2006-06-01 23:04:55 +0000 | |
---|---|---|
committer | 2006-06-01 23:04:55 +0000 | |
commit | fc7849fff2f1ef231d3a18f8e685e1f439b0896b (patch) | |
tree | 39ba2d96ee6feeb9b2c4b90a98cb6b7c5952a576 /sys/dev/pci/if_xge.c | |
parent | Document all the new and shiny redistribute options. With a lot of help from (diff) | |
download | wireguard-openbsd-fc7849fff2f1ef231d3a18f8e685e1f439b0896b.tar.xz wireguard-openbsd-fc7849fff2f1ef231d3a18f8e685e1f439b0896b.zip |
hide link up/down messages under XGE_DEBUG.
Diffstat (limited to 'sys/dev/pci/if_xge.c')
-rw-r--r-- | sys/dev/pci/if_xge.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/if_xge.c b/sys/dev/pci/if_xge.c index 47201f2ad74..6ba96d69d94 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.22 2006/06/01 22:58:42 brad Exp $ */ +/* $OpenBSD: if_xge.c,v 1.23 2006/06/01 23:04:55 brad Exp $ */ /* $NetBSD: if_xge.c,v 1.1 2005/09/09 10:30:27 ragge Exp $ */ /* @@ -631,7 +631,9 @@ xge_enable(struct xge_softc *sc) val = PIF_RCSR(ADAPTER_CONTROL); val |= LED_ON; PIF_WCSR(ADAPTER_CONTROL, val); +#ifdef XGE_DEBUG printf("%s: link up\n", XNAME); +#endif } @@ -732,7 +734,9 @@ xge_intr(void *pv) if ((val = PIF_RCSR(MAC_RMAC_ERR_REG)) & RMAC_LINK_STATE_CHANGE_INT) { /* Wait for quiescence */ +#ifdef XGE_DEBUG printf("%s: link down\n", XNAME); +#endif while ((PIF_RCSR(ADAPTER_STATUS) & QUIESCENT) != QUIESCENT) ; PIF_WCSR(MAC_RMAC_ERR_REG, RMAC_LINK_STATE_CHANGE_INT); |