From d50e882ab9eb03542a029e6d36cbe11df455aa58 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Mon, 18 Mar 2013 01:11:52 +0000 Subject: Log some more information when the RX buffer allocation failed. --- sys/dev/ath/if_ath_rx_edma.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/dev/ath/if_ath_rx_edma.c b/sys/dev/ath/if_ath_rx_edma.c index 301a22cc060f..3df234184b79 100644 --- a/sys/dev/ath/if_ath_rx_edma.c +++ b/sys/dev/ath/if_ath_rx_edma.c @@ -661,9 +661,12 @@ 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, "%s: Q%d: alloc failed?\n", + device_printf(sc->sc_dev, + "%s: Q%d: alloc failed: i=%d, nbufs=%d?\n", __func__, - qtype); + qtype, + i, + nbufs); break; } -- cgit v1.2.3