summaryrefslogtreecommitdiffstats
path: root/src/drivers/nvs/spi.c
diff options
context:
space:
mode:
authorMichael Brown2007-12-06 21:16:46 +0100
committerMichael Brown2007-12-06 21:16:46 +0100
commit1949641d102b0fdc8d4314abaee9ba055481fcc0 (patch)
tree0c302355c988e9b1d2c942bb1cc6d6170a933944 /src/drivers/nvs/spi.c
parentKill off some warnings-problematic debug statements in ndp.c; the code (diff)
downloadipxe-1949641d102b0fdc8d4314abaee9ba055481fcc0.tar.gz
ipxe-1949641d102b0fdc8d4314abaee9ba055481fcc0.tar.xz
ipxe-1949641d102b0fdc8d4314abaee9ba055481fcc0.zip
Fix compiler warnings that appear only on OpenBSD.
Diffstat (limited to 'src/drivers/nvs/spi.c')
-rw-r--r--src/drivers/nvs/spi.c4
1 files changed, 2 insertions, 2 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 ) {