diff options
author | jhb <jhb@FreeBSD.org> | 2012-07-10 18:57:05 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2012-07-10 18:57:05 +0000 |
commit | 26b7689ce198c9a52a53994db16f1023ce8db769 (patch) | |
tree | 7186ea38f58f8c46ab5e65619678b2c8dab728bb | |
parent | 673c1e65d776fd65e149f994928606da90706d63 (diff) | |
download | FreeBSD-src-26b7689ce198c9a52a53994db16f1023ce8db769.zip FreeBSD-src-26b7689ce198c9a52a53994db16f1023ce8db769.tar.gz |
Fix build when ATH_DEBUG is not defined.
-rw-r--r-- | sys/dev/ath/if_ath_rx_edma.c | 3 | ||||
-rw-r--r-- | sys/dev/ath/if_ath_tx.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ath/if_ath_rx_edma.c b/sys/dev/ath/if_ath_rx_edma.c index ac917ce..07563e4 100644 --- a/sys/dev/ath/if_ath_rx_edma.c +++ b/sys/dev/ath/if_ath_rx_edma.c @@ -618,8 +618,9 @@ ath_edma_rxfifo_flush(struct ath_softc *sc, HAL_RX_QUEUE qtype) for (i = 0; i < re->m_fifolen; i++) { if (re->m_fifo[i] != NULL) { - struct ath_buf *bf = re->m_fifo[i]; #ifdef ATH_DEBUG + struct ath_buf *bf = re->m_fifo[i]; + if (sc->sc_debug & ATH_DEBUG_RECV_DESC) ath_printrxbuf(sc, bf, 0, HAL_OK); #endif diff --git a/sys/dev/ath/if_ath_tx.c b/sys/dev/ath/if_ath_tx.c index 9a458d9..934f9dc 100644 --- a/sys/dev/ath/if_ath_tx.c +++ b/sys/dev/ath/if_ath_tx.c @@ -3583,8 +3583,10 @@ ath_tx_aggr_comp_aggr(struct ath_softc *sc, struct ath_buf *bf_first, "seq_st=%d\n", __func__, hasba, tx_ok, isaggr, seq_st); /* XXX TODO: schedule an interface reset */ +#ifdef ATH_DEBUG ath_printtxbuf(sc, bf_first, sc->sc_ac2q[atid->ac]->axq_qnum, 0, 0); +#endif } /* |