Skip to content

Commit 32253c6

Browse files
Vijayakannankartben
authored andcommitted
net: ip: resolve NET_IPV4_FRAGMENT build warning
warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] Change the printf modifier to %zd for size_t variable will resolve the warning. Signed-off-by: Vijayakannan Ayyathurai <[email protected]>
1 parent 19ba839 commit 32253c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/ip/ipv4_fragment.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static void reassemble_packet(struct net_ipv4_reassembly *reass)
206206
net_pkt_set_data(pkt, &ipv4_access);
207207
net_pkt_set_ip_reassembled(pkt, true);
208208

209-
LOG_DBG("New pkt %p IPv4 len is %d bytes", pkt, net_pkt_get_len(pkt));
209+
LOG_DBG("New pkt %p IPv4 len is %zd bytes", pkt, net_pkt_get_len(pkt));
210210

211211
/* We need to use the queue when feeding the packet back into the
212212
* IP stack as we might run out of stack if we call processing_data()

0 commit comments

Comments
 (0)