arch/pic32mz: Fix compiler warnings in pic32mz_ethernet.c
* arch/mips/src/pic32mz/pic32mz_ethernet.c (): Fix warnings related to printf-style format specifiers.
This commit is contained in:
parent
f78bdd3978
commit
b881948b27
@ -1413,7 +1413,7 @@ static void pic32mz_rxdone(struct pic32mz_driver_s *priv)
|
||||
|
||||
if ((rxdesc->rsv2 & RXDESC_RSV2_OK) == 0)
|
||||
{
|
||||
nwarn("WARNING. rsv1: %08x rsv2: %08x\n",
|
||||
nwarn("WARNING. rsv1: %08" PRIx32 " rsv2: %08" PRIx32 "\n",
|
||||
rxdesc->rsv1, rxdesc->rsv2);
|
||||
NETDEV_RXERRORS(&priv->pd_dev);
|
||||
pic32mz_rxreturn(rxdesc);
|
||||
@ -1427,7 +1427,8 @@ static void pic32mz_rxdone(struct pic32mz_driver_s *priv)
|
||||
|
||||
else if (priv->pd_dev.d_len > CONFIG_NET_ETH_PKTSIZE)
|
||||
{
|
||||
nwarn("WARNING: Too big. packet length: %d rxdesc: %08x\n",
|
||||
nwarn("WARNING: Too big. packet length: %d "
|
||||
"rxdesc: %08" PRIx32 "\n",
|
||||
priv->pd_dev.d_len, rxdesc->status);
|
||||
NETDEV_RXERRORS(&priv->pd_dev);
|
||||
pic32mz_rxreturn(rxdesc);
|
||||
@ -1440,7 +1441,8 @@ static void pic32mz_rxdone(struct pic32mz_driver_s *priv)
|
||||
else if ((rxdesc->status & (RXDESC_STATUS_EOP | RXDESC_STATUS_SOP)) !=
|
||||
(RXDESC_STATUS_EOP | RXDESC_STATUS_SOP))
|
||||
{
|
||||
nwarn("WARNING: Fragment. packet length: %d rxdesc: %08x\n",
|
||||
nwarn("WARNING: Fragment. packet length: %d "
|
||||
"rxdesc: %08" PRIx32 "\n",
|
||||
priv->pd_dev.d_len, rxdesc->status);
|
||||
NETDEV_RXFRAGMENTS(&priv->pd_dev);
|
||||
pic32mz_rxreturn(rxdesc);
|
||||
@ -1740,7 +1742,7 @@ static void pic32mz_interrupt_work(void *arg)
|
||||
|
||||
if ((status & ETH_INT_RXOVFLW) != 0)
|
||||
{
|
||||
nerr("ERROR: RX Overrun. status: %08x\n", status);
|
||||
nerr("ERROR: RX Overrun. status: %08" PRIx32 "\n", status);
|
||||
NETDEV_RXERRORS(&priv->pd_dev);
|
||||
}
|
||||
|
||||
@ -1751,8 +1753,8 @@ static void pic32mz_interrupt_work(void *arg)
|
||||
|
||||
if ((status & ETH_INT_RXBUFNA) != 0)
|
||||
{
|
||||
nerr("ERROR: RX buffer descriptor overrun. status: %08x\n",
|
||||
status);
|
||||
nerr("ERROR: RX buffer descriptor overrun. "
|
||||
"status: %08" PRIx32 "\n", status);
|
||||
NETDEV_RXERRORS(&priv->pd_dev);
|
||||
}
|
||||
|
||||
@ -1763,7 +1765,7 @@ static void pic32mz_interrupt_work(void *arg)
|
||||
|
||||
if ((status & ETH_INT_RXBUSE) != 0)
|
||||
{
|
||||
nerr("ERROR: RX BVCI bus error. status: %08x\n", status);
|
||||
nerr("ERROR: RX BVCI bus error. status: %08" PRIx32 "\n", status);
|
||||
NETDEV_RXERRORS(&priv->pd_dev);
|
||||
}
|
||||
|
||||
@ -1808,7 +1810,7 @@ static void pic32mz_interrupt_work(void *arg)
|
||||
|
||||
if ((status & ETH_INT_TXABORT) != 0)
|
||||
{
|
||||
nerr("ERROR: TX abort. status: %08x\n", status);
|
||||
nerr("ERROR: TX abort. status: %08" PRIx32 "\n", status);
|
||||
NETDEV_TXERRORS(&priv->pd_dev);
|
||||
}
|
||||
|
||||
@ -1819,7 +1821,7 @@ static void pic32mz_interrupt_work(void *arg)
|
||||
|
||||
if ((status & ETH_INT_TXBUSE) != 0)
|
||||
{
|
||||
nerr("ERROR: TX BVCI bus error. status: %08x\n", status);
|
||||
nerr("ERROR: TX BVCI bus error. status: %08" PRIx32 "\n", status);
|
||||
NETDEV_TXERRORS(&priv->pd_dev);
|
||||
}
|
||||
|
||||
@ -2040,8 +2042,10 @@ static int pic32mz_ifup(struct net_driver_s *dev)
|
||||
int ret;
|
||||
|
||||
ninfo("Bringing up: %d.%d.%d.%d\n",
|
||||
dev->d_ipaddr & 0xff, (dev->d_ipaddr >> 8) & 0xff,
|
||||
(dev->d_ipaddr >> 16) & 0xff, dev->d_ipaddr >> 24);
|
||||
(uint8_t)((dev->d_ipaddr >> 0) & 0xff),
|
||||
(uint8_t)((dev->d_ipaddr >> 8) & 0xff),
|
||||
(uint8_t)((dev->d_ipaddr >> 16) & 0xff),
|
||||
(uint8_t)((dev->d_ipaddr >> 24) & 0xff));
|
||||
|
||||
/* Reset the Ethernet controller (again) */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user