mirror of
https://github.com/espressif/esp-lwip.git
synced 2026-09-17 06:30:09 +00:00
dhcp: Add logging of DHCP state changes
2.1.3-esp: 1343f47b dhcp: Add dhcp state debug info
This commit is contained in:
@@ -1439,6 +1439,7 @@ static void
|
||||
dhcp_set_state(struct dhcp *dhcp, u8_t new_state)
|
||||
{
|
||||
if (new_state != dhcp->state) {
|
||||
LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_STATE, ("dhcp_set_state(): old state: /0x%" X8_F " -> new state: /0x%" X8_F "\n", dhcp->state, new_state));
|
||||
dhcp->state = new_state;
|
||||
dhcp->tries = 0;
|
||||
dhcp->request_timeout = 0;
|
||||
|
||||
Reference in New Issue
Block a user