Cast the bus_size_t to a intmax_t rather than assuming type-punning to

a size_t.  Switch from %z to %j.
This commit is contained in:
imp 2010-03-29 17:26:24 +00:00
parent f724b9e1b7
commit 0c0fbd95a0

View File

@ -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;
}