Skip to content

Commit 0e5df7a

Browse files
jukkarkartben
authored andcommitted
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 <[email protected]>
1 parent 59c9e84 commit 0e5df7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/l2/ethernet/vlan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ int net_eth_vlan_enable(struct net_if *iface, uint16_t tag)
448448
continue;
449449
}
450450

451-
NET_DBG("[%d] Adding vlan tag %d to iface %d (%p) attached to %d (%p)",
451+
NET_DBG("[%zd] Adding vlan tag %d to iface %d (%p) attached to %d (%p)",
452452
i, vlan->tag, net_if_get_by_iface(vlan->iface), vlan->iface,
453453
net_if_get_by_iface(iface), iface);
454454

0 commit comments

Comments
 (0)