1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/icmpv6_hdr_print: replace PRIu8 by PRIu16

PRIu8 is not supported on samr21-xpro:

    type:   hu  code:   hu

After fix

    type: 133  code:   0

Found by running 'tests/gnrc_netif'
This commit is contained in:
Gaëtan Harter 2018-05-11 17:19:07 +02:00
parent d0f22b787c
commit 60d09e6b21
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

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));
}
/** @} */