diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2005-03-18 00:10:37 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2005-03-18 00:10:37 +0000 |
commit | 522c380c54087bf254bcb97deeb3d8aa29dd69f6 (patch) | |
tree | f582ddd0db8cda1a1a0e6c6240a0622875c9a9c2 /sys/dev | |
parent | 3302d8d8a880264ded40c1d23ff7eaf7df724ba4 (diff) |
Only complain about tx fifo overflows if RTW_DEBUG is set.
ok deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/rtw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/rtw.c b/sys/dev/ic/rtw.c index d9ad767aa9f..86fc5860244 100644 --- a/sys/dev/ic/rtw.c +++ b/sys/dev/ic/rtw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtw.c,v 1.25 2005/03/15 09:24:53 jsg Exp $ */ +/* $OpenBSD: rtw.c,v 1.26 2005/03/18 00:10:36 jsg Exp $ */ /* $NetBSD: rtw.c,v 1.29 2004/12/27 19:49:16 dyoung Exp $ */ /*- * Copyright (c) 2004, 2005 David Young. All rights reserved. @@ -1716,8 +1716,10 @@ rtw_intr_ioerror(struct rtw_softc *sc, u_int16_t isr) { struct rtw_regs *regs = &sc->sc_regs; +#ifdef RTW_DEBUG if ((isr & RTW_INTR_TXFOVW) != 0) printf("%s: tx fifo overflow\n", sc->sc_dev.dv_xname); +#endif if ((isr & (RTW_INTR_RDU|RTW_INTR_RXFOVW)) == 0) return; |