Fix previous, use %zd.

This commit is contained in:
xtraeme 2007-03-21 03:22:16 +00:00
parent be7bb25d74
commit feef686ef0

View File

@ -109,13 +109,13 @@ drm_pci_alloc(drm_device_t *dev, size_t size, size_t align, dma_addr_t maxaddr)
ret = bus_dmamem_alloc(dev->pa.pa_dmat, size, align, size,
&dmah->seg, 1, &nsegs, BUS_DMA_NOWAIT);
if (ret != 0) {
aprint_error("%s: bus_dmamem_alloc(%d, %d) returned %d\n",
aprint_error("%s: bus_dmamem_alloc(%zd, %zd) returned %d\n",
__func__, size, align, ret);
free(dmah, M_DRM);
return NULL;
}
if(nsegs != 1) {
aprint_error("%s: bus_dmamem_alloc(%d) returned %d segments\n",
aprint_error("%s: bus_dmamem_alloc(%zd) returned %d segments\n",
__func__, size, nsegs);
bus_dmamem_free(dev->pa.pa_dmat, &dmah->seg, nsegs);
free(dmah, M_DRM);