aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-08-10 13:38:23 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-08-10 13:38:23 +0000
commit84c956df7772b5e2c4dd121f46535b0889b13bee (patch)
treef57e94b1899a331b65588940900f3b67ea875800
parent8e0cc51b87add3a277690328915b7a4be1a31eba (diff)
downloadsrc-84c956df7772b5e2c4dd121f46535b0889b13bee.tar.gz
src-84c956df7772b5e2c4dd121f46535b0889b13bee.zip
ath: Minor style cleanups
device_printf => DPRINTF and two whitespace adjustments Submitted by: Augustin Cavalier <waddlesplash@gmail.com> Obtained from: Haiku (4a88aa503ad4155a20931e263d24343043994ea9) MFC after: 1 week
Notes
Notes: svn path=/head/; revision=337573
-rw-r--r--sys/dev/ath/if_ath_rx_edma.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ath/if_ath_rx_edma.c b/sys/dev/ath/if_ath_rx_edma.c
index 3f0498140ca8..725447d61739 100644
--- a/sys/dev/ath/if_ath_rx_edma.c
+++ b/sys/dev/ath/if_ath_rx_edma.c
@@ -168,7 +168,7 @@ ath_edma_stoprecv(struct ath_softc *sc, int dodelay)
ath_hal_setrxfilter(ah, 0);
/*
- *
+ *
*/
if (ath_hal_stopdmarecv(ah) == AH_TRUE)
sc->sc_rx_stopped = 1;
@@ -729,7 +729,7 @@ ath_edma_rxbuf_alloc(struct ath_softc *sc)
bf = TAILQ_FIRST(&sc->sc_rxbuf);
/* XXX shouldn't happen upon startup? */
if (bf == NULL) {
- device_printf(sc->sc_dev, "%s: nothing on rxbuf?!\n",
+ DPRINTF(sc, ATH_DEBUG_EDMA_RX, "%s: nothing on rxbuf?!\n",
__func__);
return (NULL);
}
@@ -810,7 +810,7 @@ ath_edma_rxfifo_alloc(struct ath_softc *sc, HAL_RX_QUEUE qtype, int nbufs)
bf = ath_edma_rxbuf_alloc(sc);
/* XXX should ensure the FIFO is not NULL? */
if (bf == NULL) {
- device_printf(sc->sc_dev,
+ DPRINTF(sc, ATH_DEBUG_EDMA_RX,
"%s: Q%d: alloc failed: i=%d, nbufs=%d?\n",
__func__,
qtype,
@@ -927,7 +927,7 @@ ath_edma_rxfifo_free(struct ath_softc *sc, HAL_RX_QUEUE qtype)
device_printf(sc->sc_dev, "%s: called; qtype=%d\n",
__func__,
qtype);
-
+
free(re->m_fifo, M_ATHDEV);
return (0);