arch/arm/src/lpc43xx/lpc43_ethernet.c: Fix syslog formats
This commit is contained in:
parent
b866af1aff
commit
2937ebde96
@ -40,6 +40,7 @@
|
|||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#if defined(CONFIG_NET) && defined(CONFIG_LPC43_ETHERNET)
|
#if defined(CONFIG_NET) && defined(CONFIG_LPC43_ETHERNET)
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@ -957,7 +958,7 @@ static int lpc43_transmit(FAR struct lpc43_ethmac_s *priv)
|
|||||||
txdesc = priv->txhead;
|
txdesc = priv->txhead;
|
||||||
txfirst = txdesc;
|
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);
|
priv->dev.d_len, priv->dev.d_buf, txdesc, txdesc->tdes0);
|
||||||
|
|
||||||
DEBUGASSERT(txdesc && (txdesc->tdes0 & ETH_TDES0_OWN) == 0);
|
DEBUGASSERT(txdesc && (txdesc->tdes0 & ETH_TDES0_OWN) == 0);
|
||||||
@ -1567,7 +1568,8 @@ static int lpc43_recvframe(FAR struct lpc43_ethmac_s *priv)
|
|||||||
* scanning logic, and continue scanning with the next frame.
|
* scanning logic, and continue scanning with the next frame.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
nwarn("WARNING: Dropped, RX descriptor errors: %08x\n",
|
nwarn("WARNING: Dropped, RX descriptor errors: %08" PRIx32
|
||||||
|
"\n",
|
||||||
rxdesc->rdes0);
|
rxdesc->rdes0);
|
||||||
lpc43_freesegment(priv, rxcurr, priv->segments);
|
lpc43_freesegment(priv, rxcurr, priv->segments);
|
||||||
}
|
}
|
||||||
@ -1807,7 +1809,8 @@ static void lpc43_freeframe(FAR struct lpc43_ethmac_s *priv)
|
|||||||
* TX descriptors.
|
* 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);
|
txdesc, txdesc->tdes0, txdesc->tdes2, txdesc->tdes3);
|
||||||
|
|
||||||
DEBUGASSERT(txdesc->tdes2 != 0);
|
DEBUGASSERT(txdesc->tdes2 != 0);
|
||||||
@ -2264,8 +2267,10 @@ static int lpc43_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),
|
||||||
(dev->d_ipaddr >> 16) & 0xff, dev->d_ipaddr >> 24);
|
(int)((dev->d_ipaddr >> 8) & 0xff),
|
||||||
|
(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…
x
Reference in New Issue
Block a user