dhcp: Add logging of DHCP state changes

2.1.3-esp: 1343f47b dhcp: Add dhcp state debug info
This commit is contained in:
David Cermak
2024-09-10 16:54:34 +02:00
parent 620c58d61c
commit 731f5248c3
+1
View File
@@ -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;