1
0
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:
Martine Lenders 2017-02-07 11:47:51 +01:00 committed by GitHub
commit 50d5b07ecb
2 changed files with 2 additions and 2 deletions

View File

@ -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));
}
/** @} */

View File

@ -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));
}