Merge pull request #9116 from cladmi/pr/sys/icmpv6_hdr_print

sys/icmpv6_hdr_print: replace PRIu8 by PRIu16
This commit is contained in:
Kaspar Schleiser 2018-05-12 02:02:30 +02:00 committed by GitHub
commit 0ca4ffa6a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,8 @@
void icmpv6_hdr_print(icmpv6_hdr_t *hdr)
{
printf(" type: %3" PRIu8 " code: %3" PRIu8 "\n", hdr->type, hdr->code);
printf(" type: %3" PRIu16 " code: %3" PRIu16 "\n",
(uint16_t)hdr->type, (uint16_t)hdr->code);
printf(" cksum: 0x%04" PRIx16 "\n", byteorder_ntohs(hdr->csum));
}
/** @} */