mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
Fix compiler warnings that appear only on OpenBSD.
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user