diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-09-22 03:18:58 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-09-22 03:18:58 +0000 |
commit | 400c6fe5b7421a234a70c9ed3b490c7bdb9b6312 (patch) | |
tree | 85f0f7252cde05f7e781bd3ed1b820926960c025 | |
parent | 4286312df1fb248194210c933f51c54f030e10d5 (diff) |
put a few printf's in the interrupt handler under VR_DEBUG.
-rw-r--r-- | sys/dev/pci/if_vr.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c index 39fd9371559..f2fb7c8d77a 100644 --- a/sys/dev/pci/if_vr.c +++ b/sys/dev/pci/if_vr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vr.c,v 1.64 2006/06/17 18:00:43 brad Exp $ */ +/* $OpenBSD: if_vr.c,v 1.65 2006/09/22 03:18:57 brad Exp $ */ /* * Copyright (c) 1997, 1998 @@ -582,7 +582,7 @@ vr_reset(struct vr_softc *sc) printf("%s: reset never completed!\n", sc->sc_dev.dv_xname); else { -#ifdef DEBUG +#ifdef VR_DEBUG /* Use newer force reset command */ printf("%s: Using force reset command.\n", sc->sc_dev.dv_xname); @@ -1190,12 +1190,15 @@ vr_intr(void *arg) vr_rxeof(sc); if (status & VR_ISR_RX_DROPPED) { +#ifdef VR_DEBUG printf("%s: rx packet lost\n", sc->sc_dev.dv_xname); +#endif ifp->if_ierrors++; } if ((status & VR_ISR_RX_ERR) || (status & VR_ISR_RX_NOBUF) || (status & VR_ISR_RX_NOBUF) || (status & VR_ISR_RX_OFLOW)) { +#ifdef VR_DEBUG printf("%s: receive error (%04x)", sc->sc_dev.dv_xname, status); if (status & VR_ISR_RX_NOBUF) @@ -1205,6 +1208,7 @@ vr_intr(void *arg) if (status & VR_ISR_RX_DROPPED) printf(" packet lost"); printf("\n"); +#endif vr_rxeoc(sc); } |