summaryrefslogtreecommitdiffstats
path: root/sys/dev/mpt
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-02-23 19:49:30 +0000
committerobrien <obrien@FreeBSD.org>2003-02-23 19:49:30 +0000
commit7501a40564cdf7616e384e72fd6f396c4308b153 (patch)
treea024434ca097ffac02c9cd2e166ad978886bc082 /sys/dev/mpt
parent1b31cacb04bda3269b11d3f3a2d43e44b794dcb5 (diff)
downloadFreeBSD-src-7501a40564cdf7616e384e72fd6f396c4308b153.zip
FreeBSD-src-7501a40564cdf7616e384e72fd6f396c4308b153.tar.gz
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
Diffstat (limited to 'sys/dev/mpt')
-rw-r--r--sys/dev/mpt/mpt_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mpt/mpt_pci.c b/sys/dev/mpt/mpt_pci.c
index 9a0a5ba..1351354 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);
}
OpenPOWER on IntegriCloud