From owner-svn-src-all@FreeBSD.ORG Tue Jul 10 18:57:06 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D44C106566C; Tue, 10 Jul 2012 18:57:06 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 493288FC08; Tue, 10 Jul 2012 18:57:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q6AIv6gk097832; Tue, 10 Jul 2012 18:57:06 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q6AIv61d097828; Tue, 10 Jul 2012 18:57:06 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201207101857.q6AIv61d097828@svn.freebsd.org> From: John Baldwin Date: Tue, 10 Jul 2012 18:57:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r238350 - head/sys/dev/ath X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2012 18:57:06 -0000 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 } /*