diff options
| author | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2018-02-13 16:26:06 +0000 |
|---|---|---|
| committer | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2018-02-13 16:26:06 +0000 |
| commit | 92ddc7b86da58a0216caaced8bbeceabed979780 (patch) | |
| tree | acfc1d5fff4b3d6dfab1c1e5d4c2e74c6e9bd024 /sys/dev/mpr | |
| parent | 96ec8b8f3540cbff58e6ec5c1843f79ce747ba8d (diff) | |
Notes
Diffstat (limited to 'sys/dev/mpr')
| -rw-r--r-- | sys/dev/mpr/mpr.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/dev/mpr/mpr.c b/sys/dev/mpr/mpr.c index cfbac0f1908a..b0bbffa34e26 100644 --- a/sys/dev/mpr/mpr.c +++ b/sys/dev/mpr/mpr.c @@ -1356,10 +1356,10 @@ mpr_alloc_hw_queues(struct mpr_softc *sc) sc->free_busaddr = queues_busaddr; sc->post_queue = (MPI2_REPLY_DESCRIPTORS_UNION *)(queues + fqsize); sc->post_busaddr = queues_busaddr + fqsize; - mpr_dprint(sc, MPR_INIT, "free queue busaddr= %#016lx size= %d\n", - sc->free_busaddr, fqsize); - mpr_dprint(sc, MPR_INIT, "reply queue busaddr= %#016lx size= %d\n", - sc->post_busaddr, pqsize); + mpr_dprint(sc, MPR_INIT, "free queue busaddr= %#016jx size= %d\n", + (uintmax_t)sc->free_busaddr, fqsize); + mpr_dprint(sc, MPR_INIT, "reply queue busaddr= %#016jx size= %d\n", + (uintmax_t)sc->post_busaddr, pqsize); return (0); } @@ -1402,8 +1402,8 @@ mpr_alloc_replies(struct mpr_softc *sc) bzero(sc->reply_frames, rsize); bus_dmamap_load(sc->reply_dmat, sc->reply_map, sc->reply_frames, rsize, mpr_memaddr_cb, &sc->reply_busaddr, 0); - mpr_dprint(sc, MPR_INIT, "reply frames busaddr= %#016lx size= %d\n", - sc->reply_busaddr, rsize); + mpr_dprint(sc, MPR_INIT, "reply frames busaddr= %#016jx size= %d\n", + (uintmax_t)sc->reply_busaddr, rsize); return (0); } @@ -1438,8 +1438,8 @@ mpr_alloc_requests(struct mpr_softc *sc) bzero(sc->req_frames, rsize); bus_dmamap_load(sc->req_dmat, sc->req_map, sc->req_frames, rsize, mpr_memaddr_cb, &sc->req_busaddr, 0); - mpr_dprint(sc, MPR_INIT, "request frames busaddr= %#016lx size= %d\n", - sc->req_busaddr, rsize); + mpr_dprint(sc, MPR_INIT, "request frames busaddr= %#016jx size= %d\n", + (uintmax_t)sc->req_busaddr, rsize); rsize = sc->chain_frame_size * sc->num_chains; if (bus_dma_tag_create( sc->mpr_parent_dmat, /* parent */ @@ -1464,8 +1464,8 @@ mpr_alloc_requests(struct mpr_softc *sc) bzero(sc->chain_frames, rsize); bus_dmamap_load(sc->chain_dmat, sc->chain_map, sc->chain_frames, rsize, mpr_memaddr_cb, &sc->chain_busaddr, 0); - mpr_dprint(sc, MPR_INIT, "chain frames busaddr= %#016lx size= %d\n", - sc->chain_busaddr, rsize); + mpr_dprint(sc, MPR_INIT, "chain frames busaddr= %#016jx size= %d\n", + (uintmax_t)sc->chain_busaddr, rsize); rsize = MPR_SENSE_LEN * sc->num_reqs; if (bus_dma_tag_create( sc->mpr_parent_dmat, /* parent */ @@ -1490,8 +1490,8 @@ mpr_alloc_requests(struct mpr_softc *sc) bzero(sc->sense_frames, rsize); bus_dmamap_load(sc->sense_dmat, sc->sense_map, sc->sense_frames, rsize, mpr_memaddr_cb, &sc->sense_busaddr, 0); - mpr_dprint(sc, MPR_INIT, "sense frames busaddr= %#016lx size= %d\n", - sc->sense_busaddr, rsize); + mpr_dprint(sc, MPR_INIT, "sense frames busaddr= %#016jx size= %d\n", + (uintmax_t)sc->sense_busaddr, rsize); sc->chains = malloc(sizeof(struct mpr_chain) * sc->num_chains, M_MPR, M_WAITOK | M_ZERO); |
