net: vlan: Avoid printf modifier issue with size_t variable

Change the printf modifier to %zd for size_t variable printout
to avoid compiler warning.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
This commit is contained in:
Jukka Rissanen 2025-04-22 17:46:37 +03:00 committed by Benjamin Cabé
commit 0e5df7a67b

View file

@ -448,7 +448,7 @@ int net_eth_vlan_enable(struct net_if *iface, uint16_t tag)
continue;
}
NET_DBG("[%d] Adding vlan tag %d to iface %d (%p) attached to %d (%p)",
NET_DBG("[%zd] Adding vlan tag %d to iface %d (%p) attached to %d (%p)",
i, vlan->tag, net_if_get_by_iface(vlan->iface), vlan->iface,
net_if_get_by_iface(iface), iface);