Use correct format specifier for size_t
This commit is contained in:
parent
f212691624
commit
5682d10b0d
|
@ -196,7 +196,7 @@ static int eth2tr(struct bridge_state *bst)
|
||||||
/* 802.3 frame: 'proto' is actually the length */
|
/* 802.3 frame: 'proto' is actually the length */
|
||||||
eth_payload_len = htons(ethh->h_proto);
|
eth_payload_len = htons(ethh->h_proto);
|
||||||
if (sizeof(*ethh) + eth_payload_len > ethlen) {
|
if (sizeof(*ethh) + eth_payload_len > ethlen) {
|
||||||
fprintf(stderr, "TR<-ETH: Not bridging unrealistically long (%lu > %u) frame %s->%s\n",
|
fprintf(stderr, "TR<-ETH: Not bridging unrealistically long (%zu > %u) frame %s->%s\n",
|
||||||
sizeof(*ethh) + eth_payload_len, ethlen, eth_src, eth_dst);
|
sizeof(*ethh) + eth_payload_len, ethlen, eth_src, eth_dst);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue