Skip to content

Commit 225dc3f

Browse files
1010101001010101Tomasz Bursztyka
authored andcommitted
samples/net: Fix logging format error
When building the echo_client sample app, the following warning is found: echo-client.c:37: echo_client/src/echo-client.c: In function 'send_ipv4_data': include/logging/sys_log.h:108:20: warning: format '%d' expects argument of type 'int', but argument 7 has type 'size_t' ... So, this patch changes %d by %zu to remove that warning. Change-Id: I8a3822bca6d5988e531684d647de93bd77aabf9b Signed-off-by: Flavio Santes <[email protected]>
1 parent 65cf8c7 commit 225dc3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/net/echo_client/src/echo-client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ static bool send_ipv4_data(struct net_context *udp)
414414
len = net_buf_frags_len(send_buf);
415415

416416
NET_ASSERT_INFO(expecting_ipv4 == len,
417-
"Data to send %d bytes, real len %d",
417+
"Data to send %d bytes, real len %zu",
418418
expecting_ipv4, len);
419419

420420
set_dst_addr(AF_INET, send_buf, &dst_addr);

0 commit comments

Comments
 (0)