mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 13:00:39 +03:00
Various warnings fixups for OpenBSD with gcc-3.3.5.
This commit is contained in:
@@ -577,7 +577,7 @@ e1000_transmit ( struct net_device *netdev, struct io_buffer *iobuf )
|
||||
E1000_TXD_CMD_IFCS | iob_len ( iobuf );
|
||||
tx_curr_desc->upper.data = 0;
|
||||
|
||||
DBG ( "TX fill: %ld tx_curr: %ld addr: %#08lx len: %d\n", adapter->tx_fill_ctr,
|
||||
DBG ( "TX fill: %ld tx_curr: %ld addr: %#08lx len: %zd\n", adapter->tx_fill_ctr,
|
||||
tx_curr, virt_to_bus ( iobuf->data ), iob_len ( iobuf ) );
|
||||
|
||||
/* Point to next free descriptor */
|
||||
|
||||
@@ -25,7 +25,7 @@ static int legacy_transmit ( struct net_device *netdev, struct io_buffer *iobuf
|
||||
struct nic *nic = netdev->priv;
|
||||
struct ethhdr *ethhdr;
|
||||
|
||||
DBG ( "Transmitting %d bytes\n", iob_len ( iobuf ) );
|
||||
DBG ( "Transmitting %zd bytes\n", iob_len ( iobuf ) );
|
||||
iob_pad ( iobuf, ETH_ZLEN );
|
||||
ethhdr = iobuf->data;
|
||||
iob_pull ( iobuf, sizeof ( *ethhdr ) );
|
||||
|
||||
@@ -471,7 +471,7 @@ static int natsemi_transmit (struct net_device *netdev, struct io_buffer *iobuf)
|
||||
np->tx[np->tx_cur].bufptr = virt_to_bus (iobuf->data);
|
||||
np->tx[np->tx_cur].cmdsts = iob_len (iobuf) | OWN;
|
||||
|
||||
DBG ("TX id %d at %#08lx + %#08x\n", np->tx_cur,
|
||||
DBG ("TX id %d at %#08lx + %#08zx\n", np->tx_cur,
|
||||
virt_to_bus (&iobuf->data), iob_len (iobuf));
|
||||
|
||||
/* increment the circular buffer pointer to the next buffer location
|
||||
|
||||
@@ -379,7 +379,7 @@ static int rtl_transmit ( struct net_device *netdev, struct io_buffer *iobuf ) {
|
||||
iob_pad ( iobuf, ETH_ZLEN );
|
||||
|
||||
/* Add to TX ring */
|
||||
DBG ( "TX id %d at %lx+%x\n", rtl->tx.next,
|
||||
DBG ( "TX id %d at %lx+%zx\n", rtl->tx.next,
|
||||
virt_to_bus ( iobuf->data ), iob_len ( iobuf ) );
|
||||
rtl->tx.iobuf[rtl->tx.next] = iobuf;
|
||||
outl ( virt_to_bus ( iobuf->data ),
|
||||
|
||||
Reference in New Issue
Block a user