Use %j and args cast to uintmax_t to print bus_addr_t && length args.

This commit is contained in:
Matt Jacob 2007-04-15 19:03:45 +00:00
parent 2c9c9b9f7f
commit 07589439e5

View File

@ -594,8 +594,8 @@ bus_dmamap_load_mvec_sg(bus_dma_tag_t dmat, bus_dmamap_t map, struct mbuf *m0,
error = _bus_dmamap_load_buffer(dmat, NULL,
data, len, NULL, flags, &lastaddr,
segs, nsegs, first);
DPRINTF("%d: addr=0x%lx len=%ld\n", i, segs[i].ds_addr,
segs[i].ds_len);
DPRINTF("%d: addr=0x%jx len=%ju\n", i,
(uintmax_t)segs[i].ds_addr, (uintmax_t)segs[i].ds_len);
first = 0;
}
}