summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-03-29 17:26:24 +0000
committerimp <imp@FreeBSD.org>2010-03-29 17:26:24 +0000
commit0c0fbd95a03f8c9cc26adc7d46f12cc69c53373c (patch)
tree8f359fa65551ef5df1d9822782492e0239a67e40 /sys
parentf724b9e1b7d44d2adb676a372dd65f0561567e00 (diff)
downloadFreeBSD-src-0c0fbd95a03f8c9cc26adc7d46f12cc69c53373c.zip
FreeBSD-src-0c0fbd95a03f8c9cc26adc7d46f12cc69c53373c.tar.gz
Cast the bus_size_t to a intmax_t rather than assuming type-punning to
a size_t. Switch from %z to %j.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ubsec/ubsec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ubsec/ubsec.c b/sys/dev/ubsec/ubsec.c
index 5e3cc8b..1ea150d 100644
--- a/sys/dev/ubsec/ubsec.c
+++ b/sys/dev/ubsec/ubsec.c
@@ -1886,8 +1886,8 @@ ubsec_dma_malloc(
BUS_DMA_NOWAIT, &dma->dma_map);
if (r != 0) {
device_printf(sc->sc_dev, "ubsec_dma_malloc: "
- "bus_dmammem_alloc failed; size %zu, error %u\n",
- size, r);
+ "bus_dmammem_alloc failed; size %ju, error %u\n",
+ (intmax_t)size, r);
goto fail_2;
}
OpenPOWER on IntegriCloud