mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08: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 */
|
/** Called when link is starting */
|
||||||
void ppp_link_start(ppp_pcb *pcb) {
|
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);
|
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);
|
new_phase(pcb, PPP_PHASE_INITIALIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -731,7 +732,7 @@ void ppp_start(ppp_pcb *pcb) {
|
|||||||
|
|
||||||
/** Called when link failed to setup */
|
/** Called when link failed to setup */
|
||||||
void ppp_link_failed(ppp_pcb *pcb) {
|
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);
|
new_phase(pcb, PPP_PHASE_DEAD);
|
||||||
pcb->err_code = PPPERR_OPEN;
|
pcb->err_code = PPPERR_OPEN;
|
||||||
pcb->link_status_cb(pcb, pcb->err_code, pcb->ctx_cb);
|
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) */
|
/** Called when link is normally down (i.e. it was asked to end) */
|
||||||
void ppp_link_end(ppp_pcb *pcb) {
|
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) {
|
if (pcb->err_code == PPPERR_NONE) {
|
||||||
pcb->err_code = PPPERR_CONNECT;
|
pcb->err_code = PPPERR_CONNECT;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user