From cc2f8c60cdd20d54da25c360beebe61df8ab4252 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Sun, 23 Feb 2003 19:49:30 +0000 Subject: PAGE_SIZE is unsigned on all our platforms, and is a long on some. So cast to u_long before printing out and use a matching specifier. Tested on: sparc64 --- sys/dev/mpt/mpt_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/mpt') diff --git a/sys/dev/mpt/mpt_pci.c b/sys/dev/mpt/mpt_pci.c index 9a0a5ba9493d1..1351354d53973 100644 --- a/sys/dev/mpt/mpt_pci.c +++ b/sys/dev/mpt/mpt_pci.c @@ -519,8 +519,8 @@ mpt_dma_mem_alloc(mpt_softc_t *mpt) /* Allocate some DMA accessable memory for replies */ if (bus_dmamem_alloc(mpt->reply_dmat, (void **)&mpt->reply, BUS_DMA_NOWAIT, &mpt->reply_dmap) != 0) { - device_printf(dev, "cannot allocate %d bytes of reply memory\n", - PAGE_SIZE); + device_printf(dev, "cannot allocate %lu bytes of reply memory\n", + (u_long)PAGE_SIZE); return (1); } -- cgit v1.3