Log some more information when the RX buffer allocation failed.

This commit is contained in:
Adrian Chadd 2013-03-18 01:11:52 +00:00
parent 774d251d99
commit d50e882ab9
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}