From a76cb4ea2f001036c8d144d830b88aa4f18922ec Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Fri, 23 Oct 2020 14:36:53 +0200 Subject: [PATCH] sys/*: ENABLE_DEBUG not needed for inttypes.h --- sys/can/router.c | 6 +----- .../gnrc/network_layer/icmpv6/echo/gnrc_icmpv6_echo.c | 7 ++----- sys/net/gnrc/network_layer/ndp/gnrc_ndp.c | 4 +--- .../sixlowpan/frag/gnrc_sixlowpan_frag.c | 11 +++-------- sys/net/link_layer/csma_sender/csma_sender.c | 6 +----- 5 files changed, 8 insertions(+), 26 deletions(-) diff --git a/sys/can/router.c b/sys/can/router.c index 227c8760e4..e7eae1b276 100644 --- a/sys/can/router.c +++ b/sys/can/router.c @@ -19,6 +19,7 @@ #include #include +#include #include "kernel_defines.h" @@ -35,11 +36,6 @@ #define ENABLE_DEBUG 0 #include "debug.h" -#if ENABLE_DEBUG -/* For PRIu16 etc. */ -#include -#endif - /** * This is a can_id element */ diff --git a/sys/net/gnrc/network_layer/icmpv6/echo/gnrc_icmpv6_echo.c b/sys/net/gnrc/network_layer/icmpv6/echo/gnrc_icmpv6_echo.c index ef4e1ae4c6..a20a189559 100644 --- a/sys/net/gnrc/network_layer/icmpv6/echo/gnrc_icmpv6_echo.c +++ b/sys/net/gnrc/network_layer/icmpv6/echo/gnrc_icmpv6_echo.c @@ -12,6 +12,8 @@ * @file */ +#include + #include "net/gnrc.h" #include "od.h" @@ -23,11 +25,6 @@ #define ENABLE_DEBUG 0 #include "debug.h" -#if ENABLE_DEBUG -/* For PRIu16 etc. */ -#include -#endif - gnrc_pktsnip_t *gnrc_icmpv6_echo_build(uint8_t type, uint16_t id, uint16_t seq, uint8_t *data, size_t data_len) { diff --git a/sys/net/gnrc/network_layer/ndp/gnrc_ndp.c b/sys/net/gnrc/network_layer/ndp/gnrc_ndp.c index f25da7a9d8..2fc4d16437 100644 --- a/sys/net/gnrc/network_layer/ndp/gnrc_ndp.c +++ b/sys/net/gnrc/network_layer/ndp/gnrc_ndp.c @@ -15,6 +15,7 @@ #include #include +#include #include "net/gnrc/icmpv6.h" #include "net/gnrc/ipv6.h" @@ -31,9 +32,6 @@ #define ENABLE_DEBUG 0 #include "debug.h" -/* For PRIu8 etc. */ -#include - static char addr_str[IPV6_ADDR_MAX_STR_LEN]; gnrc_pktsnip_t *gnrc_ndp_nbr_sol_build(const ipv6_addr_t *tgt, diff --git a/sys/net/gnrc/network_layer/sixlowpan/frag/gnrc_sixlowpan_frag.c b/sys/net/gnrc/network_layer/sixlowpan/frag/gnrc_sixlowpan_frag.c index 454dd4d12b..b6c663ec60 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/frag/gnrc_sixlowpan_frag.c +++ b/sys/net/gnrc/network_layer/sixlowpan/frag/gnrc_sixlowpan_frag.c @@ -16,6 +16,9 @@ * @author Peter Kietzmann */ +#include +#include + #include "kernel_types.h" #include "net/gnrc/pktbuf.h" #include "net/gnrc/netapi.h" @@ -30,14 +33,6 @@ #define ENABLE_DEBUG 0 #include "debug.h" -#if ENABLE_DEBUG -/* For PRIu16 etc. */ - -#include -#include -#endif - - static inline uint16_t _floor8(uint16_t length) { return length & 0xfff8U; diff --git a/sys/net/link_layer/csma_sender/csma_sender.c b/sys/net/link_layer/csma_sender/csma_sender.c index bf43528675..33b50875c5 100644 --- a/sys/net/link_layer/csma_sender/csma_sender.c +++ b/sys/net/link_layer/csma_sender/csma_sender.c @@ -21,6 +21,7 @@ #include #include #include +#include #include "xtimer.h" #include "random.h" @@ -32,11 +33,6 @@ #define ENABLE_DEBUG 0 #include "debug.h" -#if ENABLE_DEBUG -/* For PRIu16 etc. */ -#include -#endif - const csma_sender_conf_t CSMA_SENDER_CONF_DEFAULT = { CONFIG_CSMA_SENDER_MIN_BE_DEFAULT, CONFIG_CSMA_SENDER_MAX_BE_DEFAULT,