mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 23:12:09 +00:00
PPP, PPPoS, fixed warnings with PPPDEBUG disabled
This commit is contained in:
parent
b957a81ea5
commit
1c91bb5a20
@ -743,13 +743,11 @@ drop:
|
|||||||
void
|
void
|
||||||
pppos_accm_out_config(pppos_pcb *pppos, u32_t accm)
|
pppos_accm_out_config(pppos_pcb *pppos, u32_t accm)
|
||||||
{
|
{
|
||||||
ppp_pcb *ppp;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (!pppos_exist(pppos)) {
|
if (!pppos_exist(pppos)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ppp = pppos->ppp;
|
|
||||||
|
|
||||||
/* Load the ACCM bits for the 32 control codes. */
|
/* Load the ACCM bits for the 32 control codes. */
|
||||||
for (i = 0; i < 32/8; i++) {
|
for (i = 0; i < 32/8; i++) {
|
||||||
@ -757,21 +755,19 @@ pppos_accm_out_config(pppos_pcb *pppos, u32_t accm)
|
|||||||
}
|
}
|
||||||
|
|
||||||
PPPDEBUG(LOG_INFO, ("pppos_accm_out_config[%d]: in_accm=%X %X %X %X\n",
|
PPPDEBUG(LOG_INFO, ("pppos_accm_out_config[%d]: in_accm=%X %X %X %X\n",
|
||||||
ppp->num,
|
pppos->ppp->num,
|
||||||
pppos->out_accm[0], pppos->out_accm[1], pppos->out_accm[2], pppos->out_accm[3]));
|
pppos->out_accm[0], pppos->out_accm[1], pppos->out_accm[2], pppos->out_accm[3]));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
pppos_accm_in_config(pppos_pcb *pppos, u32_t accm)
|
pppos_accm_in_config(pppos_pcb *pppos, u32_t accm)
|
||||||
{
|
{
|
||||||
ppp_pcb *ppp;
|
|
||||||
int i;
|
int i;
|
||||||
SYS_ARCH_DECL_PROTECT(lev);
|
SYS_ARCH_DECL_PROTECT(lev);
|
||||||
|
|
||||||
if (!pppos_exist(pppos)) {
|
if (!pppos_exist(pppos)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ppp = pppos->ppp;
|
|
||||||
|
|
||||||
/* Load the ACCM bits for the 32 control codes. */
|
/* Load the ACCM bits for the 32 control codes. */
|
||||||
SYS_ARCH_PROTECT(lev);
|
SYS_ARCH_PROTECT(lev);
|
||||||
@ -781,7 +777,7 @@ pppos_accm_in_config(pppos_pcb *pppos, u32_t accm)
|
|||||||
SYS_ARCH_UNPROTECT(lev);
|
SYS_ARCH_UNPROTECT(lev);
|
||||||
|
|
||||||
PPPDEBUG(LOG_INFO, ("pppos_accm_in_config[%d]: in_accm=%X %X %X %X\n",
|
PPPDEBUG(LOG_INFO, ("pppos_accm_in_config[%d]: in_accm=%X %X %X %X\n",
|
||||||
ppp->num,
|
pppos->ppp->num,
|
||||||
pppos->in_accm[0], pppos->in_accm[1], pppos->in_accm[2], pppos->in_accm[3]));
|
pppos->in_accm[0], pppos->in_accm[1], pppos->in_accm[2], pppos->in_accm[3]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user