tests/net/socket: fix compiler warnings
warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_' {aka 'long unsigned int'} [-Wformat=] Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
This commit is contained in:
parent
d796f23e0e
commit
bb3795505d
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ static int fake_dev_send(const struct device *dev, struct net_pkt *pkt)
|
|||
ARG_UNUSED(pkt);
|
||||
|
||||
/* Loopback the data back to stack: */
|
||||
NET_DBG("Dummy device: Loopbacking data (%d bytes) to iface %d\n", net_pkt_get_len(pkt),
|
||||
NET_DBG("Dummy device: Loopbacking data (%zd bytes) to iface %d\n", net_pkt_get_len(pkt),
|
||||
net_if_get_by_iface(net_pkt_iface(pkt)));
|
||||
|
||||
recv_pkt = net_pkt_clone(pkt, K_NO_WAIT);
|
||||
|
|
|
@ -96,7 +96,7 @@ static int dummy_send(const struct device *dev, struct net_pkt *pkt)
|
|||
ARG_UNUSED(dev);
|
||||
ARG_UNUSED(pkt);
|
||||
|
||||
NET_DBG("Sending data (%d bytes) to iface %d\n",
|
||||
NET_DBG("Sending data (%zd bytes) to iface %d\n",
|
||||
net_pkt_get_len(pkt), net_if_get_by_iface(net_pkt_iface(pkt)));
|
||||
|
||||
current_dev = dev;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue