diff options
author | Michael Brown | 2007-12-06 21:16:46 +0100 |
---|---|---|
committer | Michael Brown | 2007-12-06 21:16:46 +0100 |
commit | 1949641d102b0fdc8d4314abaee9ba055481fcc0 (patch) | |
tree | 0c302355c988e9b1d2c942bb1cc6d6170a933944 /src/drivers/nvs | |
parent | Kill off some warnings-problematic debug statements in ndp.c; the code (diff) | |
download | ipxe-1949641d102b0fdc8d4314abaee9ba055481fcc0.tar.gz ipxe-1949641d102b0fdc8d4314abaee9ba055481fcc0.tar.xz ipxe-1949641d102b0fdc8d4314abaee9ba055481fcc0.zip |
Fix compiler warnings that appear only on OpenBSD.
Diffstat (limited to 'src/drivers/nvs')
-rw-r--r-- | src/drivers/nvs/spi.c | 4 | ||||
-rw-r--r-- | src/drivers/nvs/threewire.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/nvs/spi.c b/src/drivers/nvs/spi.c index fba6b6d6..be6b5904 100644 --- a/src/drivers/nvs/spi.c +++ b/src/drivers/nvs/spi.c @@ -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 ) { diff --git a/src/drivers/nvs/threewire.c b/src/drivers/nvs/threewire.c index 3ce2a906..622e8585 100644 --- a/src/drivers/nvs/threewire.c +++ b/src/drivers/nvs/threewire.c @@ -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, |