From 37f6eb63f88daefaa0899d9900789fc1a8aae1bc Mon Sep 17 00:00:00 2001
From: Martine Lenders <mail@martine-lenders.eu>
Date: Tue, 7 Feb 2017 10:08:00 +0100
Subject: [PATCH] udp: fix formatter of checksum in udp_hdr_print()

---
 sys/net/transport_layer/udp/udp_hdr_print.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/net/transport_layer/udp/udp_hdr_print.c b/sys/net/transport_layer/udp/udp_hdr_print.c
index 757a00ba6e..0d22ae84f7 100644
--- a/sys/net/transport_layer/udp/udp_hdr_print.c
+++ b/sys/net/transport_layer/udp/udp_hdr_print.c
@@ -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));
 }
-- 
GitLab