From b272e904fdebaa43a124e442097a2952f83aabf8 Mon Sep 17 00:00:00 2001 From: Martine Lenders <mail@martine-lenders.eu> Date: Tue, 7 Feb 2017 10:07:41 +0100 Subject: [PATCH] icmpv6: fix formatter of checksum in icmpv6_hdr_print() --- sys/net/network_layer/icmpv6/icmpv6_hdr_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/network_layer/icmpv6/icmpv6_hdr_print.c b/sys/net/network_layer/icmpv6/icmpv6_hdr_print.c index 867e42fb8e..130e2fbf2a 100644 --- a/sys/net/network_layer/icmpv6/icmpv6_hdr_print.c +++ b/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)); } /** @} */ -- GitLab