Skip to content
Snippets Groups Projects
Unverified Commit 60d09e6b authored by Gaëtan Harter's avatar Gaëtan Harter
Browse files

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'
parent d0f22b78
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,8 @@ ...@@ -21,7 +21,8 @@
void icmpv6_hdr_print(icmpv6_hdr_t *hdr) 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)); printf(" cksum: 0x%04" PRIx16 "\n", byteorder_ntohs(hdr->csum));
} }
/** @} */ /** @} */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment