Author: jhb
Date: Tue Jul 10 18:57:05 2012
New Revision: 238350
URL: http://svn.freebsd.org/changeset/base/238350

Log:
  Fix build when ATH_DEBUG is not defined.

Modified:
  head/sys/dev/ath/if_ath_rx_edma.c
  head/sys/dev/ath/if_ath_tx.c

Modified: head/sys/dev/ath/if_ath_rx_edma.c
==============================================================================
--- head/sys/dev/ath/if_ath_rx_edma.c   Tue Jul 10 18:30:20 2012        
(r238349)
+++ head/sys/dev/ath/if_ath_rx_edma.c   Tue Jul 10 18:57:05 2012        
(r238350)
@@ -618,8 +618,9 @@ ath_edma_rxfifo_flush(struct ath_softc *
 
        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

Modified: head/sys/dev/ath/if_ath_tx.c
==============================================================================
--- head/sys/dev/ath/if_ath_tx.c        Tue Jul 10 18:30:20 2012        
(r238349)
+++ head/sys/dev/ath/if_ath_tx.c        Tue Jul 10 18:57:05 2012        
(r238350)
@@ -3583,8 +3583,10 @@ ath_tx_aggr_comp_aggr(struct ath_softc *
                    "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
        }
 
        /*
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to