mirror of
https://github.com/espressif/esp-lwip.git
synced 2026-10-03 06:17:40 +00:00
Fix print format issues repored for -Wformat
This commit is contained in:
committed by
David Čermák
parent
d6b006094b
commit
894e387f5c
@@ -795,7 +795,7 @@ ip_napt_forward(struct pbuf *p, struct ip_hdr *iphdr, struct netif *inp, struct
|
|||||||
if (m->mport != udphdr->src)
|
if (m->mport != udphdr->src)
|
||||||
ip_napt_modify_port_udp(udphdr, 0, m->mport);
|
ip_napt_modify_port_udp(udphdr, 0, m->mport);
|
||||||
ip_napt_modify_addr_udp(udphdr, &iphdr->src, m->maddr);
|
ip_napt_modify_addr_udp(udphdr, &iphdr->src, m->maddr);
|
||||||
LWIP_DEBUGF(NAPT_DEBUG, ("Modify UDP addr %x %x", iphdr->src.addr, m->maddr));
|
LWIP_DEBUGF(NAPT_DEBUG, ("Modify UDP addr %" X32_F " %" X32_F, iphdr->src.addr, m->maddr));
|
||||||
ip_napt_modify_addr(iphdr, &iphdr->src, m->maddr);
|
ip_napt_modify_addr(iphdr, &iphdr->src, m->maddr);
|
||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -1598,7 +1598,7 @@ tcp_receive(struct tcp_pcb *pcb)
|
|||||||
if (pcb->rcv_wnd < TCP_TCPLEN(cseg)) {
|
if (pcb->rcv_wnd < TCP_TCPLEN(cseg)) {
|
||||||
LWIP_DEBUGF(TCP_INPUT_DEBUG,
|
LWIP_DEBUGF(TCP_INPUT_DEBUG,
|
||||||
("tcp_receive: OOSEQ packet out of wnd "
|
("tcp_receive: OOSEQ packet out of wnd "
|
||||||
"seqno=%"U32_F" wnd =%"U32_F" len=%"U16_F
|
"seqno=%"U32_F" wnd =%"TCPWNDSIZE_F" len=%"U16_F
|
||||||
"snd_wl1=%"U32_F" snd_wl2 =%"U32_F" f = %"X16_F" tf=%"U16_F"\n",
|
"snd_wl1=%"U32_F" snd_wl2 =%"U32_F" f = %"X16_F" tf=%"U16_F"\n",
|
||||||
seqno,pcb->rcv_wnd,cseg->len,pcb->snd_wl1,pcb->snd_wl1,
|
seqno,pcb->rcv_wnd,cseg->len,pcb->snd_wl1,pcb->snd_wl1,
|
||||||
TCPH_FLAGS((cseg)->tcphdr),pcb->flags));
|
TCPH_FLAGS((cseg)->tcphdr),pcb->flags));
|
||||||
@@ -1819,7 +1819,7 @@ tcp_receive(struct tcp_pcb *pcb)
|
|||||||
if (TCPH_FLAGS(next->next->tcphdr) & TCP_SYN) {
|
if (TCPH_FLAGS(next->next->tcphdr) & TCP_SYN) {
|
||||||
LWIP_DEBUGF(TCP_INPUT_DEBUG,
|
LWIP_DEBUGF(TCP_INPUT_DEBUG,
|
||||||
("tcp_receive: ooseq not trimmed correctly to rcv_wnd "
|
("tcp_receive: ooseq not trimmed correctly to rcv_wnd "
|
||||||
"seqno=%"U32_F" wnd =%"U32_F" len=%"U16_F
|
"seqno=%"U32_F" wnd =%"TCPWNDSIZE_F" len=%"U16_F
|
||||||
"snd_wl1=%"U32_F" snd_wl2 =%"U32_F" f = %"X16_F" tf=%"U16_F"\n",
|
"snd_wl1=%"U32_F" snd_wl2 =%"U32_F" f = %"X16_F" tf=%"U16_F"\n",
|
||||||
seqno,pcb->rcv_wnd,next->next->len,pcb->snd_wl1,pcb->snd_wl1,
|
seqno,pcb->rcv_wnd,next->next->len,pcb->snd_wl1,pcb->snd_wl1,
|
||||||
TCPH_FLAGS(next->next->tcphdr),pcb->flags));
|
TCPH_FLAGS(next->next->tcphdr),pcb->flags));
|
||||||
|
|||||||
+2
-2
@@ -469,7 +469,7 @@ vj_uncompress_uncomp(struct pbuf *nb, struct vjcompress *comp)
|
|||||||
|| (hlen += TCPH_HDRLEN_BYTES((struct tcp_hdr *)&((char *)ip)[hlen]))
|
|| (hlen += TCPH_HDRLEN_BYTES((struct tcp_hdr *)&((char *)ip)[hlen]))
|
||||||
> nb->len
|
> nb->len
|
||||||
|| hlen > MAX_HDR) {
|
|| hlen > MAX_HDR) {
|
||||||
PPPDEBUG(LOG_INFO, ("vj_uncompress_uncomp: bad cid=%d, hlen=%d buflen=%d\n",
|
PPPDEBUG(LOG_INFO, ("vj_uncompress_uncomp: bad cid=%d, hlen=%" U32_F " buflen=%d\n",
|
||||||
IPH_PROTO(ip), hlen, nb->len));
|
IPH_PROTO(ip), hlen, nb->len));
|
||||||
vj_uncompress_err(comp);
|
vj_uncompress_err(comp);
|
||||||
return -1;
|
return -1;
|
||||||
@@ -596,7 +596,7 @@ vj_uncompress_tcp(struct pbuf **nb, struct vjcompress *comp)
|
|||||||
* We must have dropped some characters (crc should detect
|
* We must have dropped some characters (crc should detect
|
||||||
* this but the old slip framing won't)
|
* this but the old slip framing won't)
|
||||||
*/
|
*/
|
||||||
PPPDEBUG(LOG_INFO, ("vj_uncompress_tcp: head buffer %d too short %d\n",
|
PPPDEBUG(LOG_INFO, ("vj_uncompress_tcp: head buffer %d too short %" U32_F "\n",
|
||||||
n0->len, vjlen));
|
n0->len, vjlen));
|
||||||
goto bad;
|
goto bad;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user