1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/*: ENABLE_DEBUG not needed for inttypes.h

This commit is contained in:
Bas Stottelaar 2020-10-23 14:36:53 +02:00
parent cc2e6b08d1
commit a76cb4ea2f
5 changed files with 8 additions and 26 deletions

View File

@ -19,6 +19,7 @@
#include <stdint.h>
#include <errno.h>
#include <inttypes.h>
#include "kernel_defines.h"
@ -35,11 +36,6 @@
#define ENABLE_DEBUG 0
#include "debug.h"
#if ENABLE_DEBUG
/* For PRIu16 etc. */
#include <inttypes.h>
#endif
/**
* This is a can_id element
*/

View File

@ -12,6 +12,8 @@
* @file
*/
#include <inttypes.h>
#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 <inttypes.h>
#endif
gnrc_pktsnip_t *gnrc_icmpv6_echo_build(uint8_t type, uint16_t id, uint16_t seq,
uint8_t *data, size_t data_len)
{

View File

@ -15,6 +15,7 @@
#include <assert.h>
#include <string.h>
#include <inttypes.h>
#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 <inttypes.h>
static char addr_str[IPV6_ADDR_MAX_STR_LEN];
gnrc_pktsnip_t *gnrc_ndp_nbr_sol_build(const ipv6_addr_t *tgt,

View File

@ -16,6 +16,9 @@
* @author Peter Kietzmann <peter.kietzmann@haw-hamburg.de>
*/
#include <assert.h>
#include <inttypes.h>
#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 <assert.h>
#include <inttypes.h>
#endif
static inline uint16_t _floor8(uint16_t length)
{
return length & 0xfff8U;

View File

@ -21,6 +21,7 @@
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
#include <inttypes.h>
#include "xtimer.h"
#include "random.h"
@ -32,11 +33,6 @@
#define ENABLE_DEBUG 0
#include "debug.h"
#if ENABLE_DEBUG
/* For PRIu16 etc. */
#include <inttypes.h>
#endif
const csma_sender_conf_t CSMA_SENDER_CONF_DEFAULT = {
CONFIG_CSMA_SENDER_MIN_BE_DEFAULT,
CONFIG_CSMA_SENDER_MAX_BE_DEFAULT,