mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-01 04:12:07 +00:00
bug #29105: Review printf formatters: added X8_F to cc.h and use it in etharp.c
This commit is contained in:
parent
5d20e690fd
commit
b9499d07c2
@ -58,6 +58,8 @@ with newer versions.
|
|||||||
* Added define LWIP_RAND() for lwip-wide randomization (needs to be defined
|
* Added define LWIP_RAND() for lwip-wide randomization (needs to be defined
|
||||||
in cc.h, e.g. used by igmp)
|
in cc.h, e.g. used by igmp)
|
||||||
|
|
||||||
|
* Added printf-formatter X8_F to printf u8_t as hex
|
||||||
|
|
||||||
|
|
||||||
(STABLE-1.3.2)
|
(STABLE-1.3.2)
|
||||||
|
|
||||||
|
@ -1164,7 +1164,7 @@ ethernet_input(struct pbuf *p, struct netif *netif)
|
|||||||
/* points to packet payload, which starts with an Ethernet header */
|
/* points to packet payload, which starts with an Ethernet header */
|
||||||
ethhdr = (struct eth_hdr *)p->payload;
|
ethhdr = (struct eth_hdr *)p->payload;
|
||||||
LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE,
|
LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE,
|
||||||
("ethernet_input: dest:%02x:%02x:%02x:%02x:%02x:%02x, src:%02x:%02x:%02x:%02x:%02x:%02x, type:%2hx\n",
|
("ethernet_input: dest:%"X8_F":%"X8_F":%"X8_F":%"X8_F":%"X8_F":%"X8_F", src:%"X8_F":%"X8_F":%"X8_F":%"X8_F":%"X8_F":%"X8_F", type:%"X16_F"\n",
|
||||||
(unsigned)ethhdr->dest.addr[0], (unsigned)ethhdr->dest.addr[1], (unsigned)ethhdr->dest.addr[2],
|
(unsigned)ethhdr->dest.addr[0], (unsigned)ethhdr->dest.addr[1], (unsigned)ethhdr->dest.addr[2],
|
||||||
(unsigned)ethhdr->dest.addr[3], (unsigned)ethhdr->dest.addr[4], (unsigned)ethhdr->dest.addr[5],
|
(unsigned)ethhdr->dest.addr[3], (unsigned)ethhdr->dest.addr[4], (unsigned)ethhdr->dest.addr[5],
|
||||||
(unsigned)ethhdr->src.addr[0], (unsigned)ethhdr->src.addr[1], (unsigned)ethhdr->src.addr[2],
|
(unsigned)ethhdr->src.addr[0], (unsigned)ethhdr->src.addr[1], (unsigned)ethhdr->src.addr[2],
|
||||||
|
Loading…
Reference in New Issue
Block a user