Merge branch 'support/lwip_enable_udp_debug' into 'master'

lwip: add menuconfig option to enable UDP debugging log

See merge request espressif/esp-idf!21634
This commit is contained in:
Zhang Wen Xu
2022-12-16 17:58:11 +08:00
2 changed files with 14 additions and 0 deletions

View File

@@ -1085,6 +1085,11 @@ menu "LWIP"
depends on LWIP_DEBUG
default n
config LWIP_UDP_DEBUG
bool "Enable UDP debug messages"
depends on LWIP_DEBUG
default n
config LWIP_SNTP_DEBUG
bool "Enable SNTP debug messages"
depends on LWIP_DEBUG

View File

@@ -1320,6 +1320,15 @@ static inline uint32_t timeout_from_offered(uint32_t lease, uint32_t min)
#define TCP_DEBUG LWIP_DBG_OFF
#endif
/**
* UDP_DEBUG: Enable debugging for UDP.
*/
#ifdef CONFIG_LWIP_UDP_DEBUG
#define UDP_DEBUG LWIP_DBG_ON
#else
#define UDP_DEBUG LWIP_DBG_OFF
#endif
/**
* SNTP_DEBUG: Enable debugging for SNTP.
*/