summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2007-04-15 19:03:45 +0000
committermjacob <mjacob@FreeBSD.org>2007-04-15 19:03:45 +0000
commite08f3ecf3c3332d19faa9ffc1574e128688fec4d (patch)
treebbf5ad7fa395a38e692d6768d662844dec8788a8
parent00b37c4ca7f2e444a9f37c43bfdebb90316178f7 (diff)
downloadFreeBSD-src-e08f3ecf3c3332d19faa9ffc1574e128688fec4d.zip
FreeBSD-src-e08f3ecf3c3332d19faa9ffc1574e128688fec4d.tar.gz
Use %j and args cast to uintmax_t to print bus_addr_t && length args.
-rw-r--r--sys/dev/cxgb/sys/uipc_mvec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cxgb/sys/uipc_mvec.c b/sys/dev/cxgb/sys/uipc_mvec.c
index a83fbcb..40ab541 100644
--- a/sys/dev/cxgb/sys/uipc_mvec.c
+++ b/sys/dev/cxgb/sys/uipc_mvec.c
@@ -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;
}
}
OpenPOWER on IntegriCloud