arch/arm/src/tiva/tm4c/tm4c_ethernet.c: Fix syslog formats

This commit is contained in:
YAMAMOTO Takashi
2020-11-30 13:42:51 +09:00
committed by Xiang Xiao
parent c10fb40322
commit d04d356ddd
+14 -7
View File
@@ -25,6 +25,7 @@
#include <nuttx/config.h>
#if defined(CONFIG_NET) && defined(CONFIG_TIVA_ETHERNET)
#include <inttypes.h>
#include <stdint.h>
#include <stdbool.h>
#include <time.h>
@@ -1058,7 +1059,7 @@ static int tiva_transmit(FAR struct tiva_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 & EMAC_TDES0_OWN) == 0);
@@ -1666,7 +1667,8 @@ static int tiva_recvframe(FAR struct tiva_ethmac_s *priv)
* scanning logic, and continue scanning with the next frame.
*/
nwarn("DROPPED: RX descriptor errors: %08x\n", rxdesc->rdes0);
nwarn("DROPPED: RX descriptor errors: %08" PRIx32 "\n",
rxdesc->rdes0);
tiva_freesegment(priv, rxcurr, priv->segments);
}
}
@@ -1889,7 +1891,8 @@ static void tiva_freeframe(FAR struct tiva_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);
@@ -2368,8 +2371,10 @@ static int tiva_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",
@@ -3483,7 +3488,8 @@ static inline void tiva_phy_initialize(FAR struct tiva_ethmac_s *priv)
while (!tiva_ephy_periphrdy());
up_udelay(250);
ninfo("RCGCEPHY: %08x PCEPHY: %08x PREPHY: %08x\n",
ninfo("RCGCEPHY: %08" PRIx32 " PCEPHY: %08" PRIx32
" PREPHY: %08" PRIx32 "\n",
getreg32(TIVA_SYSCON_RCGCEPHY),
getreg32(TIVA_SYSCON_PCEPHY),
getreg32(TIVA_SYSCON_PREPHY));
@@ -4124,7 +4130,8 @@ int tiva_ethinitialize(int intf)
/* Show all EMAC clocks */
ninfo("RCGCEMAC: %08x PCEMAC: %08x PREMAC: %08x MOSCCTL: %08x\n",
ninfo("RCGCEMAC: %08" PRIx32 " PCEMAC: %08" PRIx32
" PREMAC: %08" PRIx32 " MOSCCTL: %08" PRIx32 "\n",
getreg32(TIVA_SYSCON_RCGCEMAC),
getreg32(TIVA_SYSCON_PCEMAC),
getreg32(TIVA_SYSCON_PREMAC),