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:
parent
d0f22b787c
commit
60d09e6b21
@ -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));
|
||||
}
|
||||
/** @} */
|
||||
|
Loading…
Reference in New Issue
Block a user