From 2040f4f0b18ebee9f4f4a06e642a91171fb2f029 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Mon, 20 Jun 2016 00:42:17 +0200 Subject: [PATCH] PPP, trivial debug messages fixes/add This change only add one debug message to ppp_link_start function and fix the message debug string of ppp_link_failed and ppp_link_end. --- src/netif/ppp/ppp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index a93d2e0b..c48959b2 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -703,6 +703,7 @@ ppp_pcb *ppp_new(struct netif *pppif, const struct link_callbacks *callbacks, vo /** Called when link is starting */ void ppp_link_start(ppp_pcb *pcb) { LWIP_ASSERT("pcb->phase == PPP_PHASE_DEAD || pcb->phase == PPP_PHASE_HOLDOFF", pcb->phase == PPP_PHASE_DEAD || pcb->phase == PPP_PHASE_HOLDOFF); + PPPDEBUG(LOG_DEBUG, ("ppp_link_start[%d]\n", pcb->netif->num)); new_phase(pcb, PPP_PHASE_INITIALIZE); } @@ -731,7 +732,7 @@ void ppp_start(ppp_pcb *pcb) { /** Called when link failed to setup */ void ppp_link_failed(ppp_pcb *pcb) { - PPPDEBUG(LOG_DEBUG, ("ppp_failed[%d]\n", pcb->netif->num)); + PPPDEBUG(LOG_DEBUG, ("ppp_link_failed[%d]\n", pcb->netif->num)); new_phase(pcb, PPP_PHASE_DEAD); pcb->err_code = PPPERR_OPEN; pcb->link_status_cb(pcb, pcb->err_code, pcb->ctx_cb); @@ -739,7 +740,7 @@ void ppp_link_failed(ppp_pcb *pcb) { /** Called when link is normally down (i.e. it was asked to end) */ void ppp_link_end(ppp_pcb *pcb) { - PPPDEBUG(LOG_DEBUG, ("ppp_end[%d]\n", pcb->netif->num)); + PPPDEBUG(LOG_DEBUG, ("ppp_link_end[%d]\n", pcb->netif->num)); if (pcb->err_code == PPPERR_NONE) { pcb->err_code = PPPERR_CONNECT; }