mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
Minor changes: fix some PPP traces.
This commit is contained in:
parent
7e616ea71c
commit
1dfa246674
@ -1522,13 +1522,13 @@ pppMain(void *arg)
|
|||||||
tcpip_callback(pppStartCB, arg);
|
tcpip_callback(pppStartCB, arg);
|
||||||
while (lcp_phase[pd] != PHASE_DEAD) {
|
while (lcp_phase[pd] != PHASE_DEAD) {
|
||||||
if (pc->kill_link) {
|
if (pc->kill_link) {
|
||||||
PPPDEBUG((LOG_DEBUG, "pppMainWakeup: unit %d kill_link -> pppStopCB\n", pd));
|
PPPDEBUG((LOG_DEBUG, "pppMain: unit %d kill_link -> pppStopCB\n", pd));
|
||||||
pc->errCode = PPPERR_USER;
|
pc->errCode = PPPERR_USER;
|
||||||
/* This will leave us at PHASE_DEAD. */
|
/* This will leave us at PHASE_DEAD. */
|
||||||
tcpip_callback(pppStopCB, arg);
|
tcpip_callback(pppStopCB, arg);
|
||||||
pc->kill_link = 0;
|
pc->kill_link = 0;
|
||||||
} else if (pc->sig_hup) {
|
} else if (pc->sig_hup) {
|
||||||
PPPDEBUG((LOG_DEBUG, "pppMainWakeup: unit %d sig_hup -> pppHupCB\n", pd));
|
PPPDEBUG((LOG_DEBUG, "pppMain: unit %d sig_hup -> pppHupCB\n", pd));
|
||||||
pc->sig_hup = 0;
|
pc->sig_hup = 0;
|
||||||
tcpip_callback(pppHupCB, arg);
|
tcpip_callback(pppHupCB, arg);
|
||||||
} else {
|
} else {
|
||||||
@ -1536,7 +1536,7 @@ pppMain(void *arg)
|
|||||||
if(c > 0) {
|
if(c > 0) {
|
||||||
pppInProc(pd, p->payload, c);
|
pppInProc(pd, p->payload, c);
|
||||||
} else {
|
} else {
|
||||||
PPPDEBUG((LOG_DEBUG, "pppMainWakeup: unit %d sio_read len=%d returned %d\n", pd, p->len, c));
|
PPPDEBUG((LOG_DEBUG, "pppMain: unit %d sio_read len=%d returned %d\n", pd, p->len, c));
|
||||||
sys_msleep(1); /* give other tasks a chance to run */
|
sys_msleep(1); /* give other tasks a chance to run */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user