Use correct format specifier for size_t

This commit is contained in:
Alexander Huemer 2022-04-11 09:51:43 +00:00 committed by Harald Welte
parent f212691624
commit 5682d10b0d
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ static int eth2tr(struct bridge_state *bst)
/* 802.3 frame: 'proto' is actually the length */
eth_payload_len = htons(ethh->h_proto);
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);
return 0;
}