From 63bde8906e9e294d9e64273e7b7b1c9d7f3ad000 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 17:47:10 +0200 Subject: [PATCH 01/24] cpu/atmega_common/avr-libc-extra/inttypes.h: Correct format strings for 64 bit numbers --- cpu/atmega_common/avr-libc-extra/inttypes.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpu/atmega_common/avr-libc-extra/inttypes.h b/cpu/atmega_common/avr-libc-extra/inttypes.h index 66af2f2ced..751fd025f9 100644 --- a/cpu/atmega_common/avr-libc-extra/inttypes.h +++ b/cpu/atmega_common/avr-libc-extra/inttypes.h @@ -24,10 +24,10 @@ extern "C" { #endif -#define PRIo64 "oll" /**< Format string for octal 64-bit number */ -#define PRIx64 "xll" /**< Format string for hexadecimal 64-bit number */ -#define PRIu64 "ull" /**< Format string for unsigned 64-bit number */ -#define PRId64 "dll" /**< Format string for signed 64-bit number */ +#define PRIo64 "llo" /**< Format string for octal 64-bit number */ +#define PRIx64 "llx" /**< Format string for hexadecimal 64-bit number */ +#define PRIu64 "llu" /**< Format string for unsigned 64-bit number */ +#define PRId64 "lld" /**< Format string for signed 64-bit number */ #ifdef __cplusplus } From 942da9db1b037e2c7eae8ac796aff3e2d85b8e3b Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 17:47:59 +0200 Subject: [PATCH 02/24] tests/vtimer_msg_diff: Add missing inttypes.h include --- tests/vtimer_msg_diff/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/vtimer_msg_diff/main.c b/tests/vtimer_msg_diff/main.c index 59f530a5f7..0cd42d6d07 100644 --- a/tests/vtimer_msg_diff/main.c +++ b/tests/vtimer_msg_diff/main.c @@ -23,6 +23,7 @@ #include #include +#include #include "vtimer.h" #include "thread.h" From 031fcc05ad0c24a7f7420a3969ed506f15b26d70 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 17:48:17 +0200 Subject: [PATCH 03/24] tests/vtimer_msg_diff: Un-blacklist arduino-mega2560 --- tests/vtimer_msg_diff/Makefile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/vtimer_msg_diff/Makefile b/tests/vtimer_msg_diff/Makefile index fbdae6b891..8df2c2e5c6 100644 --- a/tests/vtimer_msg_diff/Makefile +++ b/tests/vtimer_msg_diff/Makefile @@ -1,10 +1,6 @@ APPLICATION = vtimer_msg_diff include ../Makefile.tests_common -BOARD_BLACKLIST := arduino-mega2560 -# arduino-mega2560: missing define for PRId64, avr-libc's printf function -# possibly not compatible at all - BOARD_INSUFFICIENT_RAM := mbed_lpc1768 stm32f0discovery pca10000 pca10005 USEMODULE += vtimer From 555085acdc84b1141f38224c8102ccce0fea197b Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 17:48:36 +0200 Subject: [PATCH 04/24] core/sched: Add missing inttypes.h include when debugging. --- core/sched.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/sched.c b/core/sched.c index 50f2527629..a06c9cf41f 100644 --- a/core/sched.c +++ b/core/sched.c @@ -38,6 +38,11 @@ #define ENABLE_DEBUG (0) #include "debug.h" +#if ENABLE_DEBUG +/* For PRIu16 etc. */ +#include +#endif + volatile int sched_num_threads = 0; volatile unsigned int sched_context_switch_request; From 42cfa3207791775d917d4cba7d7d8a5de4f27f58 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 17:49:07 +0200 Subject: [PATCH 05/24] sys/net/network_layer/ng_sixlowpan: Add missing inttypes.h includes --- sys/net/network_layer/ng_sixlowpan/frag/ng_sixlowpan_frag.c | 5 +++++ sys/net/network_layer/ng_sixlowpan/ng_sixlowpan.c | 5 +++++ sys/net/network_layer/ng_sixlowpan/ng_sixlowpan_print.c | 1 + 3 files changed, 11 insertions(+) diff --git a/sys/net/network_layer/ng_sixlowpan/frag/ng_sixlowpan_frag.c b/sys/net/network_layer/ng_sixlowpan/frag/ng_sixlowpan_frag.c index b2a8dfc87a..e9bb35ecd8 100644 --- a/sys/net/network_layer/ng_sixlowpan/frag/ng_sixlowpan_frag.c +++ b/sys/net/network_layer/ng_sixlowpan/frag/ng_sixlowpan_frag.c @@ -25,6 +25,11 @@ #define ENABLE_DEBUG (0) #include "debug.h" +#if ENABLE_DEBUG +/* For PRIu16 etc. */ +#include +#endif + static uint16_t _tag; static inline uint16_t _floor8(uint16_t length) diff --git a/sys/net/network_layer/ng_sixlowpan/ng_sixlowpan.c b/sys/net/network_layer/ng_sixlowpan/ng_sixlowpan.c index d6c7bb3874..9dd7051aff 100644 --- a/sys/net/network_layer/ng_sixlowpan/ng_sixlowpan.c +++ b/sys/net/network_layer/ng_sixlowpan/ng_sixlowpan.c @@ -25,6 +25,11 @@ #define ENABLE_DEBUG (0) #include "debug.h" +#if ENABLE_DEBUG +/* For PRIu16 etc. */ +#include +#endif + static kernel_pid_t _pid = KERNEL_PID_UNDEF; #if ENABLE_DEBUG diff --git a/sys/net/network_layer/ng_sixlowpan/ng_sixlowpan_print.c b/sys/net/network_layer/ng_sixlowpan/ng_sixlowpan_print.c index 673e48d37e..b1c28c3106 100644 --- a/sys/net/network_layer/ng_sixlowpan/ng_sixlowpan_print.c +++ b/sys/net/network_layer/ng_sixlowpan/ng_sixlowpan_print.c @@ -13,6 +13,7 @@ */ #include +#include #include "od.h" #include "net/ng_ipv6/hdr.h" From 84114f3cc57d7cace824407ab7220f288ba5f465 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 17:49:21 +0200 Subject: [PATCH 06/24] sys/net/network_layer/ng_ipv6: Add missing inttypes.h includes --- sys/net/network_layer/ng_ipv6/hdr/ng_ipv6_hdr_print.c | 1 + sys/net/network_layer/ng_ipv6/netif/ng_ipv6_netif.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/sys/net/network_layer/ng_ipv6/hdr/ng_ipv6_hdr_print.c b/sys/net/network_layer/ng_ipv6/hdr/ng_ipv6_hdr_print.c index c8140e8c7c..b74b486bc7 100644 --- a/sys/net/network_layer/ng_ipv6/hdr/ng_ipv6_hdr_print.c +++ b/sys/net/network_layer/ng_ipv6/hdr/ng_ipv6_hdr_print.c @@ -13,6 +13,7 @@ */ #include +#include #include "net/ng_ipv6/hdr.h" diff --git a/sys/net/network_layer/ng_ipv6/netif/ng_ipv6_netif.c b/sys/net/network_layer/ng_ipv6/netif/ng_ipv6_netif.c index 6a4d57df1c..bbdca7631e 100644 --- a/sys/net/network_layer/ng_ipv6/netif/ng_ipv6_netif.c +++ b/sys/net/network_layer/ng_ipv6/netif/ng_ipv6_netif.c @@ -32,6 +32,11 @@ #define ENABLE_DEBUG (0) #include "debug.h" +#if ENABLE_DEBUG +/* For PRIu16 etc. */ +#include +#endif + static ng_ipv6_netif_t ipv6_ifs[NG_NETIF_NUMOF]; #if ENABLE_DEBUG From 299e0eae03646362508c34bf245f1541ecdd9ca9 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 17:49:35 +0200 Subject: [PATCH 07/24] sys/net/network_layer/ng_icmpv6: Add missing inttypes.h includes --- sys/net/network_layer/ng_icmpv6/echo/ng_icmpv6_echo.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/net/network_layer/ng_icmpv6/echo/ng_icmpv6_echo.c b/sys/net/network_layer/ng_icmpv6/echo/ng_icmpv6_echo.c index 746dc57e47..36e18cd8c0 100644 --- a/sys/net/network_layer/ng_icmpv6/echo/ng_icmpv6_echo.c +++ b/sys/net/network_layer/ng_icmpv6/echo/ng_icmpv6_echo.c @@ -22,6 +22,11 @@ #define ENABLE_DEBUG (0) #include "debug.h" +#if ENABLE_DEBUG +/* For PRIu16 etc. */ +#include +#endif + ng_pktsnip_t *ng_icmpv6_echo_build(uint8_t type, uint16_t id, uint16_t seq, uint8_t *data, size_t data_len) { From de3bd0879869388716547c70c23efa4463a7b323 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 17:49:46 +0200 Subject: [PATCH 08/24] sys/net/network_layer/fig: Add missing inttypes.h includes --- sys/net/network_layer/fib/fib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/network_layer/fib/fib.c b/sys/net/network_layer/fib/fib.c index 95c5541347..7a088111cc 100644 --- a/sys/net/network_layer/fib/fib.c +++ b/sys/net/network_layer/fib/fib.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include "thread.h" #include "mutex.h" From 8f2da1d3d00d84c919f3a1d065d165f335baf7f1 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 17:50:11 +0200 Subject: [PATCH 09/24] sys/net/routing/aodvv2: Add missing inttypes.h includes --- sys/net/routing/aodvv2/reader.c | 5 +++++ sys/net/routing/aodvv2/routingtable.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/sys/net/routing/aodvv2/reader.c b/sys/net/routing/aodvv2/reader.c index bb8fedba3f..fea8a77b87 100644 --- a/sys/net/routing/aodvv2/reader.c +++ b/sys/net/routing/aodvv2/reader.c @@ -27,6 +27,11 @@ #define ENABLE_DEBUG (0) #include "debug.h" +#if ENABLE_DEBUG +/* For PRIu16 etc. */ +#include +#endif + #define VERBOSE_DEBUG (0) #if VERBOSE_DEBUG #define VDEBUG(...) AODV_DEBUG(__VA_ARGS__) diff --git a/sys/net/routing/aodvv2/routingtable.c b/sys/net/routing/aodvv2/routingtable.c index d2cd845176..87c0a954a6 100644 --- a/sys/net/routing/aodvv2/routingtable.c +++ b/sys/net/routing/aodvv2/routingtable.c @@ -17,6 +17,9 @@ * @author Lotte Steenbrink */ +#include +#include + #include "routingtable.h" #include "aodv_debug.h" From aaeaa968e68b0dd7e7139db75ce54437e35e1a1e Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 17:50:36 +0200 Subject: [PATCH 10/24] sys/net/application_layer/ng_zep: Add missing inttypes.h includes --- sys/net/application_layer/ng_zep/ng_zep.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/net/application_layer/ng_zep/ng_zep.c b/sys/net/application_layer/ng_zep/ng_zep.c index f313928912..4b3a887440 100644 --- a/sys/net/application_layer/ng_zep/ng_zep.c +++ b/sys/net/application_layer/ng_zep/ng_zep.c @@ -37,6 +37,11 @@ #define ENABLE_DEBUG (0) #include "debug.h" +#if ENABLE_DEBUG +/* For PRIu16 etc. */ +#include +#endif + #define _EVENT_RX_STARTED (1) #define _EVENT_RX_COMPLETE (2) #define _RX_BUF_SIZE (16U * sizeof(ng_pktsnip_t *)) From fd42e7adff9de76db35ca14c275a871828d3d507 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 17:51:04 +0200 Subject: [PATCH 11/24] examples/rpl_udp: Add missing inttypes.h includes --- examples/rpl_udp/rpl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/rpl_udp/rpl.c b/examples/rpl_udp/rpl.c index 0973238995..64b7a96c83 100644 --- a/examples/rpl_udp/rpl.c +++ b/examples/rpl_udp/rpl.c @@ -20,6 +20,8 @@ #include #include +#include + #include "vtimer.h" #include "thread.h" #include "net_if.h" From 7b744f68434cfa73ca623e6fbc966122f32f5476 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 17:51:21 +0200 Subject: [PATCH 12/24] examples/ng_networking: Add missing inttypes.h includes --- examples/ng_networking/udp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/ng_networking/udp.c b/examples/ng_networking/udp.c index 13862f998b..22a5335337 100644 --- a/examples/ng_networking/udp.c +++ b/examples/ng_networking/udp.c @@ -19,6 +19,7 @@ */ #include +#include #include "kernel.h" #include "net/ng_netbase.h" From 6577d21049a08d76964288ec72451bff307c0aa5 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 17:52:05 +0200 Subject: [PATCH 13/24] sys/net/ccn_lite: Add missing inttypes.h include --- sys/net/ccn_lite/ccnl-ext-appserver.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/net/ccn_lite/ccnl-ext-appserver.c b/sys/net/ccn_lite/ccnl-ext-appserver.c index a8055c0179..d5418ba7f5 100644 --- a/sys/net/ccn_lite/ccnl-ext-appserver.c +++ b/sys/net/ccn_lite/ccnl-ext-appserver.c @@ -20,6 +20,8 @@ #if RIOT_CCN_APPSERVER +#include + #include "msg.h" #include "thread.h" #include "ccnl-riot-compat.h" From b35c2782da4d1c28840f887320927494d596ae4a Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 18:05:41 +0200 Subject: [PATCH 14/24] sys/net/link_layer/net_if: Add missing inttypes.h include --- sys/net/link_layer/net_if/net_if.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/net/link_layer/net_if/net_if.c b/sys/net/link_layer/net_if/net_if.c index b2b9990e9b..e26e3cc27c 100644 --- a/sys/net/link_layer/net_if/net_if.c +++ b/sys/net/link_layer/net_if/net_if.c @@ -26,6 +26,11 @@ #define ENABLE_DEBUG (0) #include "debug.h" +#if ENABLE_DEBUG +/* For PRIu16 etc. */ +#include +#endif + net_if_t interfaces[NET_IF_MAX]; #if ENABLE_DEBUG From c2aa2aa91fe6e8b9a3611657951ae5a8aab5fc6c Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 18:05:59 +0200 Subject: [PATCH 15/24] sys/net/link_layer/ng_nomac: Add missing inttypes.h include --- sys/net/link_layer/ng_nomac/ng_nomac.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/net/link_layer/ng_nomac/ng_nomac.c b/sys/net/link_layer/ng_nomac/ng_nomac.c index 6f753c7de2..90ea92048d 100644 --- a/sys/net/link_layer/ng_nomac/ng_nomac.c +++ b/sys/net/link_layer/ng_nomac/ng_nomac.c @@ -27,6 +27,11 @@ #define ENABLE_DEBUG (0) #include "debug.h" +#if ENABLE_DEBUG +/* For PRIu16 etc. */ +#include +#endif + /** * @brief Function called by the device driver on device events * From 8fc1a656fa8cad1c7d3536e9438b5e743747609d Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 18:06:17 +0200 Subject: [PATCH 16/24] sys/shell/commands: Add missing inttypes.h include --- sys/shell/commands/sc_icmpv6_echo.c | 1 + sys/shell/commands/sc_l2_ping.c | 1 + sys/shell/commands/sc_netif.c | 1 + sys/shell/commands/sc_zep.c | 1 + 4 files changed, 4 insertions(+) diff --git a/sys/shell/commands/sc_icmpv6_echo.c b/sys/shell/commands/sc_icmpv6_echo.c index eb3f55fabb..21744bd83d 100644 --- a/sys/shell/commands/sc_icmpv6_echo.c +++ b/sys/shell/commands/sc_icmpv6_echo.c @@ -17,6 +17,7 @@ #include #include +#include #ifdef MODULE_NG_ICMPV6 diff --git a/sys/shell/commands/sc_l2_ping.c b/sys/shell/commands/sc_l2_ping.c index a3be5af841..844ecc70e6 100644 --- a/sys/shell/commands/sc_l2_ping.c +++ b/sys/shell/commands/sc_l2_ping.c @@ -21,6 +21,7 @@ #include #include #include +#include #include "l2_ping.h" #include "transceiver.h" diff --git a/sys/shell/commands/sc_netif.c b/sys/shell/commands/sc_netif.c index 2bfda29960..370b677db8 100644 --- a/sys/shell/commands/sc_netif.c +++ b/sys/shell/commands/sc_netif.c @@ -22,6 +22,7 @@ #include #include #include +#include #include "thread.h" #include "net/ng_ipv6/addr.h" diff --git a/sys/shell/commands/sc_zep.c b/sys/shell/commands/sc_zep.c index f5005b4f49..39139f4fb4 100644 --- a/sys/shell/commands/sc_zep.c +++ b/sys/shell/commands/sc_zep.c @@ -15,6 +15,7 @@ #include #include #include +#include #include "net/ng_ipv6/addr.h" #include "net/ng_ipv6/netif.h" From 5c5b6446026d9d4acaf12d8230151612858268d4 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 18:06:38 +0200 Subject: [PATCH 17/24] sys/net/transport_layer/ng_udp: Add missing inttypes.h include --- sys/net/transport_layer/ng_udp/ng_udp_hdr_print.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/transport_layer/ng_udp/ng_udp_hdr_print.c b/sys/net/transport_layer/ng_udp/ng_udp_hdr_print.c index a43c0004dc..1701038b08 100644 --- a/sys/net/transport_layer/ng_udp/ng_udp_hdr_print.c +++ b/sys/net/transport_layer/ng_udp/ng_udp_hdr_print.c @@ -19,6 +19,7 @@ */ #include +#include #include "net/ng_udp.h" From 0107a8c6e1419502111d92964defcb0254f5cb57 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 18:07:09 +0200 Subject: [PATCH 18/24] tests/driver_mpu9150: Add missing inttypes.h include --- tests/driver_mpu9150/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/driver_mpu9150/main.c b/tests/driver_mpu9150/main.c index e172774f00..43b1fc36ef 100644 --- a/tests/driver_mpu9150/main.c +++ b/tests/driver_mpu9150/main.c @@ -29,6 +29,7 @@ #endif #include +#include #include "mpu9150.h" #include "vtimer.h" From 720301304004de5561a5c2dbbeed9dd8495822e2 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 18:07:22 +0200 Subject: [PATCH 19/24] tests/netdev: Add missing inttypes.h include --- tests/netdev/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/netdev/main.c b/tests/netdev/main.c index 9c824a8d0a..f6d298e1ba 100644 --- a/tests/netdev/main.c +++ b/tests/netdev/main.c @@ -22,6 +22,7 @@ #include #include #include +#include #ifdef MODULE_NATIVENET #include "nativenet.h" From 86389fcadb2ffa3ee0fee0578ce8c6e98acca41e Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 18:07:34 +0200 Subject: [PATCH 20/24] tests/vtimer_msg: Add missing inttypes.h include --- tests/vtimer_msg/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/vtimer_msg/main.c b/tests/vtimer_msg/main.c index bfdfefca46..5af1324774 100644 --- a/tests/vtimer_msg/main.c +++ b/tests/vtimer_msg/main.c @@ -21,6 +21,7 @@ #include #include +#include #include "vtimer.h" #include "thread.h" From 1e4a09cae84eb7b78775ea5a82afba92c2a784c3 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Mon, 6 Jul 2015 18:07:47 +0200 Subject: [PATCH 21/24] tests/pthread_barrier: Add missing inttypes.h include --- tests/pthread_barrier/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/pthread_barrier/main.c b/tests/pthread_barrier/main.c index 54a90e1b8c..fcb44ae6d9 100644 --- a/tests/pthread_barrier/main.c +++ b/tests/pthread_barrier/main.c @@ -19,6 +19,7 @@ */ #include +#include #include "pthread.h" #include "random.h" From 767d3eb4df2556f80dc8d67df26ff28ed18c8b35 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Tue, 7 Jul 2015 09:47:26 +0200 Subject: [PATCH 22/24] sys/net/crosslayer/ng_netif/hdr/ng_netif_hdr_print.c: Add missing inttypes.h include --- sys/net/crosslayer/ng_netif/hdr/ng_netif_hdr_print.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/crosslayer/ng_netif/hdr/ng_netif_hdr_print.c b/sys/net/crosslayer/ng_netif/hdr/ng_netif_hdr_print.c index 9f1386269b..c1caccc897 100644 --- a/sys/net/crosslayer/ng_netif/hdr/ng_netif_hdr_print.c +++ b/sys/net/crosslayer/ng_netif/hdr/ng_netif_hdr_print.c @@ -13,6 +13,7 @@ */ #include +#include #include "net/ng_netif.h" #include "net/ng_netif/hdr.h" From b1dcd89390c9c3c5578cbc4f6c6f542dea4dc6bb Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Tue, 7 Jul 2015 09:47:53 +0200 Subject: [PATCH 23/24] sys/net/network_layer/ng_ipv6/nc: Add missing inttypes.h include --- sys/net/network_layer/ng_ipv6/nc/ng_ipv6_nc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/net/network_layer/ng_ipv6/nc/ng_ipv6_nc.c b/sys/net/network_layer/ng_ipv6/nc/ng_ipv6_nc.c index c76ec8d8ea..98a125bf15 100644 --- a/sys/net/network_layer/ng_ipv6/nc/ng_ipv6_nc.c +++ b/sys/net/network_layer/ng_ipv6/nc/ng_ipv6_nc.c @@ -29,6 +29,9 @@ #include "debug.h" #if ENABLE_DEBUG +/* For PRIu8 etc. */ +#include + static char addr_str[NG_IPV6_ADDR_MAX_STR_LEN]; #endif From 64b948f0e920f4a4765baede55c3d8d99d937715 Mon Sep 17 00:00:00 2001 From: Joakim Gebart Date: Tue, 7 Jul 2015 09:48:11 +0200 Subject: [PATCH 24/24] sys/net/network_layer/ng_ndp: Add missing inttypes.h include --- sys/net/network_layer/ng_ndp/ng_ndp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/net/network_layer/ng_ndp/ng_ndp.c b/sys/net/network_layer/ng_ndp/ng_ndp.c index 6372db23c3..1ee1599def 100644 --- a/sys/net/network_layer/ng_ndp/ng_ndp.c +++ b/sys/net/network_layer/ng_ndp/ng_ndp.c @@ -34,7 +34,10 @@ #define ENABLE_DEBUG (0) #include "debug.h" -#if (ENABLE_DEBUG) +#if ENABLE_DEBUG +/* For PRIu8 etc. */ +#include + static char addr_str[NG_IPV6_ADDR_MAX_STR_LEN]; #endif