mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-12-10 08:46:40 +08:00
Patch #1624. Fixes ip_addr_debug_print() macro formatters.
This commit is contained in:
parent
d717d627c2
commit
7be9cb71fe
@ -118,7 +118,7 @@ extern const struct ip_addr ip_addr_broadcast;
|
|||||||
#define ip_addr_ismulticast(addr1) (((addr1)->addr & ntohl(0xf0000000)) == ntohl(0xe0000000))
|
#define ip_addr_ismulticast(addr1) (((addr1)->addr & ntohl(0xf0000000)) == ntohl(0xe0000000))
|
||||||
|
|
||||||
|
|
||||||
#define ip_addr_debug_print(ipaddr) LWIP_DEBUGF(LWIP_DEBUG, ("%d.%d.%d.%d", \
|
#define ip_addr_debug_print(debug, ipaddr) LWIP_DEBUGF(debug, ("%u.%u.%u.%u", \
|
||||||
(unsigned int)(ntohl((ipaddr)->addr) >> 24) & 0xff, \
|
(unsigned int)(ntohl((ipaddr)->addr) >> 24) & 0xff, \
|
||||||
(unsigned int)(ntohl((ipaddr)->addr) >> 16) & 0xff, \
|
(unsigned int)(ntohl((ipaddr)->addr) >> 16) & 0xff, \
|
||||||
(unsigned int)(ntohl((ipaddr)->addr) >> 8) & 0xff, \
|
(unsigned int)(ntohl((ipaddr)->addr) >> 8) & 0xff, \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user