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:
Nicolas Pitre 2023-01-09 13:45:12 -05:00 committed by Carles Cufí
commit bb3795505d
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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;