diff --git a/sys/net/network_layer/icmpv6/icmpv6_hdr_print.c b/sys/net/network_layer/icmpv6/icmpv6_hdr_print.c index 130e2fbf2a4a563e6f8ff73c8543cd50332a971d..0031793b3aeece287837459b93813c9da6423641 100644 --- a/sys/net/network_layer/icmpv6/icmpv6_hdr_print.c +++ b/sys/net/network_layer/icmpv6/icmpv6_hdr_print.c @@ -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)); } /** @} */