Skip to content

Commit

Permalink
Fix print format issues repored for -Wformat
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cermak committed Aug 15, 2023
1 parent d6b0060 commit 894e387
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/core/ipv4/ip4_napt.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ ip_napt_forward(struct pbuf *p, struct ip_hdr *iphdr, struct netif *inp, struct
if (m->mport != udphdr->src)
ip_napt_modify_port_udp(udphdr, 0, m->mport);
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);
return ERR_OK;
}
Expand Down
4 changes: 2 additions & 2 deletions src/core/tcp_in.c
Original file line number Diff line number Diff line change
Expand Up @@ -1598,7 +1598,7 @@ tcp_receive(struct tcp_pcb *pcb)
if (pcb->rcv_wnd < TCP_TCPLEN(cseg)) {
LWIP_DEBUGF(TCP_INPUT_DEBUG,
("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",
seqno,pcb->rcv_wnd,cseg->len,pcb->snd_wl1,pcb->snd_wl1,
TCPH_FLAGS((cseg)->tcphdr),pcb->flags));
Expand Down Expand Up @@ -1819,7 +1819,7 @@ tcp_receive(struct tcp_pcb *pcb)
if (TCPH_FLAGS(next->next->tcphdr) & TCP_SYN) {
LWIP_DEBUGF(TCP_INPUT_DEBUG,
("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",
seqno,pcb->rcv_wnd,next->next->len,pcb->snd_wl1,pcb->snd_wl1,
TCPH_FLAGS(next->next->tcphdr),pcb->flags));
Expand Down
4 changes: 2 additions & 2 deletions src/netif/ppp/vj.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ vj_uncompress_uncomp(struct pbuf *nb, struct vjcompress *comp)
|| (hlen += TCPH_HDRLEN_BYTES((struct tcp_hdr *)&((char *)ip)[hlen]))
> nb->len
|| 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));
vj_uncompress_err(comp);
return -1;
Expand Down Expand Up @@ -596,7 +596,7 @@ vj_uncompress_tcp(struct pbuf **nb, struct vjcompress *comp)
* We must have dropped some characters (crc should detect
* 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));
goto bad;
}
Expand Down

0 comments on commit 894e387

Please sign in to comment.