diff --git a/arch/renesas/src/rx65n/rx65n_eth.c b/arch/renesas/src/rx65n/rx65n_eth.c index 10cc9c1602..9d3ab50fd5 100644 --- a/arch/renesas/src/rx65n/rx65n_eth.c +++ b/arch/renesas/src/rx65n/rx65n_eth.c @@ -26,6 +26,7 @@ #if defined(CONFIG_NET) && defined(CONFIG_RX65N_EMAC) +#include #include #include #include @@ -622,7 +623,7 @@ static uint32_t rx65n_getreg(uint32_t addr) { /* Yes.. then show how many times the value repeated */ - ninfo("[repeats %d more times]\n", count - 3); + ninfo("[repeats %" PRId32 " more times]\n", count - 3); } /* Save the new address, value, and count */ @@ -634,7 +635,7 @@ static uint32_t rx65n_getreg(uint32_t addr) /* Show the register value read */ - ninfo("%08x->%08x\n", addr, val); + ninfo("%08" PRIx32 "->%08" PRIx32 "\n", addr, val); return val; } #endif @@ -661,7 +662,7 @@ static void rx65n_putreg(uint32_t val, uint32_t addr) { /* Show the register value being written */ - ninfo("%08x<-%08x\n", addr, val); + ninfo("%08" PRIx32 "<-%08" PRIx32 "\n", addr, val); /* Write the value */ @@ -850,7 +851,7 @@ static int rx65n_transmit(FAR struct rx65n_ethmac_s *priv) txdesc = priv->txhead; txfirst = txdesc; - ninfo("d_len: %d d_buf: %p txhead: %p tdes0: %08x\n", + ninfo("d_len: %d d_buf: %p txhead: %p tdes0: %08" PRIx32 "\n", priv->dev.d_len, priv->dev.d_buf, txdesc, txdesc->tdes0); DEBUGASSERT(txdesc && (txdesc->tdes0 & TACT) == 0); @@ -1464,7 +1465,7 @@ static int rx65n_recvframe(FAR struct rx65n_ethmac_s *priv) * scanning logic, and continue scanning with the next frame. */ - nerr("ERROR: Dropped, RX descriptor errors: %08x\n", + nerr("ERROR: Dropped, RX descriptor errors: %08" PRIx32 "\n", rxdesc->rdes0); rx65n_freesegment(priv, rxcurr, priv->segments); } @@ -1721,7 +1722,8 @@ static void rx65n_freeframe(FAR struct rx65n_ethmac_s *priv) * TX descriptors. */ - ninfo("txtail: %p tdes0: %08x tdes2: %08x tdes3: %08x\n", + ninfo("txtail: %p tdes0: %08" PRIx32 + " tdes2: %08" PRIx32 " tdes3: %08" PRIx32 "\n", txdesc, txdesc->tdes0, txdesc->tdes2, txdesc->tdes3); DEBUGASSERT(txdesc->tdes2 != 0); @@ -2220,8 +2222,10 @@ static int rx65n_ifup(struct net_driver_s *dev) #ifdef CONFIG_NET_IPv4 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); + (int)(dev->d_ipaddr & 0xff), + (int)((dev->d_ipaddr >> 8) & 0xff), + (int)((dev->d_ipaddr >> 16) & 0xff), + (int)(dev->d_ipaddr >> 24)); #endif #ifdef CONFIG_NET_IPv6 ninfo("Bringing up: %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n",