Browse Source

Merge pull request #7063 from kaspar030/add_enable_debug_false.cocci

dist: tools: coccinelle: add enable_debug_false.cocci
master
Kaspar Schleiser 6 years ago committed by GitHub
parent
commit
364c53d08d
  1. 2
      cpu/sam0_common/periph/adc.c
  2. 2
      cpu/samd21/periph/pm.c
  3. 2
      cpu/stm32_common/periph/pm.c
  4. 5
      dist/tools/coccinelle/warn/enable_debug_false.cocci
  5. 2
      drivers/lsm6dsl/lsm6dsl.c
  6. 2
      examples/dtls-echo/dtls-client.c
  7. 2
      examples/dtls-echo/dtls-server.c

2
cpu/sam0_common/periph/adc.c

@ -15,7 +15,7 @@
#include "periph_conf.h"
#include "mutex.h"
#define ENABLE_DEBUG (1)
#define ENABLE_DEBUG (0)
#include "debug.h"
/* Only if we actually have any ADCs */

2
cpu/samd21/periph/pm.c

@ -24,7 +24,7 @@
#include "periph/pm.h"
#define ENABLE_DEBUG (1)
#define ENABLE_DEBUG (0)
#include "debug.h"
enum system_sleepmode {

2
cpu/stm32_common/periph/pm.c

@ -25,7 +25,7 @@
#include "irq.h"
#include "periph/pm.h"
#define ENABLE_DEBUG (1)
#define ENABLE_DEBUG (0)
#include "debug.h"
void pm_set(unsigned mode)

5
dist/tools/coccinelle/warn/enable_debug_false.cocci vendored

@ -0,0 +1,5 @@
@@
@@
- #define ENABLE_DEBUG (1)
+ #define ENABLE_DEBUG (0)

2
drivers/lsm6dsl/lsm6dsl.c

@ -19,7 +19,7 @@
#include "lsm6dsl.h"
#include "lsm6dsl_internal.h"
#define ENABLE_DEBUG (1)
#define ENABLE_DEBUG (0)
#include "debug.h"
#define MAX(a, b) ((a) > (b) ? (a) : (b))

2
examples/dtls-echo/dtls-client.c

@ -30,7 +30,7 @@
#include "timex.h"
#include "xtimer.h"
#define ENABLE_DEBUG (1)
#define ENABLE_DEBUG (0)
#include "debug.h"
/* TinyDTLS */

2
examples/dtls-echo/dtls-server.c

@ -37,7 +37,7 @@
#include "dtls_debug.h"
#include "tinydtls.h"
#define ENABLE_DEBUG (1)
#define ENABLE_DEBUG (0)
#include "debug.h"
//#define DEFAULT_PORT 20220 /* DTLS default port */

Loading…
Cancel
Save