Skip to content

Commit d914619

Browse files
committed
cleanup: fix cppcheck cast warning.
1 parent c950f7d commit d914619

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wolfip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3484,8 +3484,8 @@ static void wolfIP_print_eth(struct wolfIP_eth_frame * eth, uint32_t len)
34843484
src[0], src[1], src[2], src[3], src[4], src[5],
34853485
dst[0], dst[1], dst[2], dst[3], dst[4], dst[5]);
34863486
printf("+---------------------------------------+\n");
3487-
printf("| 0x%02x%02x | %5d bytes data | (eth type, payload) \n",
3488-
type[0], type[1], len);
3487+
printf("| 0x%02x%02x | %5lu bytes data | (eth type, payload) \n",
3488+
type[0], type[1], (unsigned long)len);
34893489
printf("+---------------------------------------+\n");
34903490
printf("\n");
34913491
}

0 commit comments

Comments
 (0)