net: tcp2: Fix compile failure on native_posix_64
Need to use %zd in formatter string for net_pkt_get_len since it returns a size_t otherwise we get something like: error: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Werror=format=] Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
d585cdd185
commit
ff29d306c9
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ static int tcp_pkt_linearize(struct net_pkt *pkt, size_t pos, size_t len)
|
|||
size_t len1, len2;
|
||||
|
||||
if (net_pkt_get_len(pkt) < (pos + len)) {
|
||||
NET_ERR("Insufficient packet len=%d (pos+len=%zu)",
|
||||
NET_ERR("Insufficient packet len=%zd (pos+len=%zu)",
|
||||
net_pkt_get_len(pkt), pos + len);
|
||||
ret = -EINVAL;
|
||||
goto out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue