Browse Source

icmpv6: fix formatter of checksum in icmpv6_hdr_print()

patch-1
Martine Lenders 6 years ago
parent
commit
b272e904fd
  1. 2
      sys/net/network_layer/icmpv6/icmpv6_hdr_print.c

2
sys/net/network_layer/icmpv6/icmpv6_hdr_print.c

@ -22,6 +22,6 @@
void icmpv6_hdr_print(icmpv6_hdr_t *hdr)
{
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));
}
/** @} */

Loading…
Cancel
Save