summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/drm/drm_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/drm/drm_pci.c b/sys/dev/drm/drm_pci.c
index a9f37ff55ab..05ada44c158 100644
--- a/sys/dev/drm/drm_pci.c
+++ b/sys/dev/drm/drm_pci.c
@@ -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);