Fix compiler warnings that appear only on OpenBSD.

This commit is contained in:
Michael Brown
2007-12-06 14:16:46 -06:00
parent 798f7f6b8e
commit 1949641d10
13 changed files with 31 additions and 31 deletions

View File

@@ -87,7 +87,7 @@ int spi_read ( struct nvs_device *nvs, unsigned int address,
device->munge_address );
int rc;
DBG ( "SPI %p reading %d bytes from %#04x\n", device, len, address );
DBG ( "SPI %p reading %zd bytes from %#04x\n", device, len, address );
if ( ( rc = bus->rw ( bus, device, command, address,
NULL, data, len ) ) != 0 ) {
DBG ( "SPI %p failed to read data from device\n", device );
@@ -114,7 +114,7 @@ int spi_write ( struct nvs_device *nvs, unsigned int address,
device->munge_address );
int rc;
DBG ( "SPI %p writing %d bytes to %#04x\n", device, len, address );
DBG ( "SPI %p writing %zd bytes to %#04x\n", device, len, address );
if ( ( rc = bus->rw ( bus, device, SPI_WREN, -1,
NULL, NULL, 0 ) ) != 0 ) {

View File

@@ -43,7 +43,7 @@ int threewire_read ( struct nvs_device *nvs, unsigned int address,
assert ( bus->mode == SPI_MODE_THREEWIRE );
DBG ( "3wire %p reading %d bytes at %04x\n", device, len, address );
DBG ( "3wire %p reading %zd bytes at %04x\n", device, len, address );
return bus->rw ( bus, device, THREEWIRE_READ, address,
NULL, data, len );
@@ -66,7 +66,7 @@ int threewire_write ( struct nvs_device *nvs, unsigned int address,
assert ( bus->mode == SPI_MODE_THREEWIRE );
DBG ( "3wire %p writing %d bytes at %04x\n", device, len, address );
DBG ( "3wire %p writing %zd bytes at %04x\n", device, len, address );
/* Enable device for writing */
if ( ( rc = bus->rw ( bus, device, THREEWIRE_EWEN,