mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #6557 from miri64/udp_icmpv6/fix/formatter
icmpv6: udp: fix formatter of checksum in header print functions
This commit is contained in:
commit
50d5b07ecb
@ -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));
|
||||
}
|
||||
/** @} */
|
||||
|
@ -27,6 +27,6 @@ void udp_hdr_print(udp_hdr_t *hdr)
|
||||
{
|
||||
printf(" src-port: %5" PRIu16 " dst-port: %5" PRIu16 "\n",
|
||||
byteorder_ntohs(hdr->src_port), byteorder_ntohs(hdr->dst_port));
|
||||
printf(" length: %" PRIu16 " cksum: 0x4%" PRIx16 "\n",
|
||||
printf(" length: %" PRIu16 " cksum: 0x%04" PRIx16 "\n",
|
||||
byteorder_ntohs(hdr->length), byteorder_ntohs(hdr->checksum));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user