diff options
author | jhb <jhb@FreeBSD.org> | 2005-12-15 22:12:27 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-12-15 22:12:27 +0000 |
commit | 1aa9ee553eae931f7025dd4707c9fd70d8789fbb (patch) | |
tree | 88df0edc9bde79504ae9fa9bee4daa087265f1c5 /sys/dev/isp/isp_pci.c | |
parent | 3acb3374d90ccc6bbee326f0f1f72fb3b87d2b96 (diff) | |
download | FreeBSD-src-1aa9ee553eae931f7025dd4707c9fd70d8789fbb.zip FreeBSD-src-1aa9ee553eae931f7025dd4707c9fd70d8789fbb.tar.gz |
Use uintmax_t and %j to print bus dma segment members rather than casting
to long long and using %ll.
Diffstat (limited to 'sys/dev/isp/isp_pci.c')
-rw-r--r-- | sys/dev/isp/isp_pci.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index 55a0ef7..b75867c 100644 --- a/sys/dev/isp/isp_pci.c +++ b/sys/dev/isp/isp_pci.c @@ -34,6 +34,7 @@ __FBSDID("$FreeBSD$"); #include <sys/kernel.h> #include <sys/module.h> #include <sys/bus.h> +#include <sys/stdint.h> #include <dev/pci/pcireg.h> #include <dev/pci/pcivar.h> @@ -1577,9 +1578,9 @@ tdma_mkfc(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) dm_segs[segcnt].ds_len; cto->rsp.m0.ct_xfrlen += dm_segs[segcnt].ds_len; isp_prt(isp, ISP_LOGTDEBUG1, - "isp_send_ctio2: ent0[%d]0x%llx:%lld", - cto->ct_seg_count, (long long)dm_segs[segcnt].ds_addr, - (long long)dm_segs[segcnt].ds_len); + "isp_send_ctio2: ent0[%d]0x%jx:%ju", + cto->ct_seg_count, (uintmax_t)dm_segs[segcnt].ds_addr, + (uintmax_t)dm_segs[segcnt].ds_len); } while (segcnt < nseg) { @@ -1606,10 +1607,10 @@ tdma_mkfc(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) crq->req_dataseg[seg].ds_base = dm_segs[segcnt].ds_addr; crq->req_dataseg[seg].ds_count = dm_segs[segcnt].ds_len; isp_prt(isp, ISP_LOGTDEBUG1, - "isp_send_ctio2: ent%d[%d]0x%llx:%lld", + "isp_send_ctio2: ent%d[%d]%jx:%ju", cto->ct_header.rqs_entry_count-1, seg, - (long long) dm_segs[segcnt].ds_addr, - (long long) dm_segs[segcnt].ds_len); + (uintmax_t)dm_segs[segcnt].ds_addr, + (uintmax_t)dm_segs[segcnt].ds_len); cto->rsp.m0.ct_xfrlen += dm_segs[segcnt].ds_len; cto->ct_seg_count++; } |