From a38010f75fe4b8439aa361d2331d0f46e2a51cc2 Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Mon, 1 Feb 2010 23:24:43 +0100 Subject: [PATCH] Added error to panic message after failed bus_dmamap_load_mbuf_sg --- rt2860.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rt2860.c b/rt2860.c index c00c97d..bee60dd 100644 --- a/rt2860.c +++ b/rt2860.c @@ -4892,10 +4892,8 @@ static int rt2860_rx_eof(struct rt2860_softc *sc, int limit) error = bus_dmamap_load_mbuf_sg(ring->data_dma_tag, data->dma_map, data->m, segs, &nsegs, BUS_DMA_NOWAIT); if (error != 0) - { - panic("%s: could not load old Rx mbuf\n", - device_get_name(sc->dev)); - } + panic("%s: could not load old Rx mbuf: error=%d\n", + device_get_name(sc->dev), error); sc->rx_mbuf_dmamap_errors++; ifp->if_ierrors++; -- 2.11.4.GIT