arch/arm/src/stm32h7/stm32_ethernet.c: Fix syslog formats
This commit is contained in:
parent
5566d9ad03
commit
ec8a46b2fa
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@ -1103,7 +1104,7 @@ static int stm32_transmit(struct stm32_ethmac_s *priv)
|
|||||||
txdesc = priv->txhead;
|
txdesc = priv->txhead;
|
||||||
txfirst = txdesc;
|
txfirst = txdesc;
|
||||||
|
|
||||||
ninfo("d_len: %d d_buf: %p txhead: %p tdes3: %08x\n",
|
ninfo("d_len: %d d_buf: %p txhead: %p tdes3: %08" PRIx32 "\n",
|
||||||
priv->dev.d_len, priv->dev.d_buf, txdesc, txdesc->des3);
|
priv->dev.d_len, priv->dev.d_buf, txdesc, txdesc->des3);
|
||||||
|
|
||||||
DEBUGASSERT(txdesc);
|
DEBUGASSERT(txdesc);
|
||||||
@ -1824,7 +1825,8 @@ static int stm32_recvframe(struct stm32_ethmac_s *priv)
|
|||||||
* next frame.
|
* next frame.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
nwarn("WARNING: DROPPED RX descriptor errors: %08x\n",
|
nwarn("WARNING: DROPPED RX descriptor errors: "
|
||||||
|
"%08" PRIx32 "\n",
|
||||||
rxdesc->des3);
|
rxdesc->des3);
|
||||||
stm32_freesegment(priv, rxcurr, priv->segments);
|
stm32_freesegment(priv, rxcurr, priv->segments);
|
||||||
}
|
}
|
||||||
@ -2083,7 +2085,8 @@ static void stm32_freeframe(struct stm32_ethmac_s *priv)
|
|||||||
* TX descriptors.
|
* TX descriptors.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ninfo("txtail: %p des0: %08x des2: %08x des3: %08x\n",
|
ninfo("txtail: %p des0: %08" PRIx32
|
||||||
|
" des2: %08" PRIx32 " des3: %08" PRIx32 "\n",
|
||||||
txdesc, txdesc->des0, txdesc->des2, txdesc->des3);
|
txdesc, txdesc->des0, txdesc->des2, txdesc->des3);
|
||||||
|
|
||||||
DEBUGASSERT(txdesc->des0 != 0);
|
DEBUGASSERT(txdesc->des0 != 0);
|
||||||
@ -2565,8 +2568,8 @@ static int stm32_ifup(struct net_driver_s *dev)
|
|||||||
|
|
||||||
#ifdef CONFIG_NET_IPv4
|
#ifdef CONFIG_NET_IPv4
|
||||||
ninfo("Bringing up: %d.%d.%d.%d\n",
|
ninfo("Bringing up: %d.%d.%d.%d\n",
|
||||||
dev->d_ipaddr & 0xff, (dev->d_ipaddr >> 8) & 0xff,
|
(int)(dev->d_ipaddr & 0xff), (int)((dev->d_ipaddr >> 8) & 0xff),
|
||||||
(dev->d_ipaddr >> 16) & 0xff, dev->d_ipaddr >> 24);
|
(int)((dev->d_ipaddr >> 16) & 0xff), (int)(dev->d_ipaddr >> 24));
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_NET_IPv6
|
#ifdef CONFIG_NET_IPv6
|
||||||
ninfo("Bringing up: %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n",
|
ninfo("Bringing up: %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user