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

udp: fix formatter of checksum in udp_hdr_print()

parent b272e904
No related branches found
No related tags found
No related merge requests found
......@@ -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));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment