mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-12 12:45:35 +00:00
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.
This commit is contained in:
parent
7b4bd3343b
commit
2040f4f0b1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user