From 60d09e6b21b196869a2917a1a9acf330107f14ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= <gaetan.harter@fu-berlin.de>
Date: Fri, 11 May 2018 17:19:07 +0200
Subject: [PATCH] sys/icmpv6_hdr_print: replace PRIu8 by PRIu16

PRIu8 is not supported on samr21-xpro:

    type:   hu  code:   hu

After fix

    type: 133  code:   0

Found by running 'tests/gnrc_netif'
---
 sys/net/network_layer/icmpv6/icmpv6_hdr_print.c | 3 ++-
 1 file changed, 2 insertions(+), 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 130e2fbf2a..0031793b3a 100644
--- a/sys/net/network_layer/icmpv6/icmpv6_hdr_print.c
+++ b/sys/net/network_layer/icmpv6/icmpv6_hdr_print.c
@@ -21,7 +21,8 @@
 
 void icmpv6_hdr_print(icmpv6_hdr_t *hdr)
 {
-    printf("   type: %3" PRIu8 "  code: %3" PRIu8 "\n", hdr->type, hdr->code);
+    printf("   type: %3" PRIu16 "  code: %3" PRIu16 "\n",
+           (uint16_t)hdr->type, (uint16_t)hdr->code);
     printf("   cksum: 0x%04" PRIx16 "\n", byteorder_ntohs(hdr->csum));
 }
 /** @} */
-- 
GitLab