diff options
author | obrien <obrien@FreeBSD.org> | 2003-02-23 19:49:30 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2003-02-23 19:49:30 +0000 |
commit | 7501a40564cdf7616e384e72fd6f396c4308b153 (patch) | |
tree | a024434ca097ffac02c9cd2e166ad978886bc082 /sys | |
parent | 1b31cacb04bda3269b11d3f3a2d43e44b794dcb5 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/dev/mpt/mpt_pci.c | 4 |
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); } |