Skip to content
Snippets Groups Projects
Commit b272e904 authored by Martine Lenders's avatar Martine Lenders
Browse files

icmpv6: fix formatter of checksum in icmpv6_hdr_print()

parent 79a4acee
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,6 @@ ...@@ -22,6 +22,6 @@
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" PRIu8 " code: %3" PRIu8 "\n", hdr->type, hdr->code);
printf(" cksum: 0x4%" 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.
Please register or to comment