Made debugging output easier configurable
This commit is contained in:
parent
60c7228675
commit
56fe6ec4a9
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* @(#)$Id: tr1001-gcr.c,v 1.1 2006/10/05 09:20:00 adamdunkels Exp $
|
* @(#)$Id: tr1001-gcr.c,v 1.2 2006/10/06 07:57:14 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* \addtogroup esb
|
* \addtogroup esb
|
||||||
|
@ -131,9 +131,14 @@ static struct timer rxtimer;
|
||||||
|
|
||||||
static unsigned short tmp_sstrength, sstrength;
|
static unsigned short tmp_sstrength, sstrength;
|
||||||
|
|
||||||
|
#define DEBUG 0
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
/* #define LOG(...) /\*printf(__VA_ARGS__)*\/ */
|
|
||||||
#define LOG(...) printf(__VA_ARGS__)
|
#define LOG(...) printf(__VA_ARGS__)
|
||||||
|
#else
|
||||||
|
#define LOG(...)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define GCRLOG(...) /* printf(__VA_ARGS__) */
|
#define GCRLOG(...) /* printf(__VA_ARGS__) */
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* @(#)$Id: tr1001.c,v 1.2 2006/08/17 08:27:54 nifi Exp $
|
* @(#)$Id: tr1001.c,v 1.3 2006/10/06 07:57:14 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* \addtogroup esb
|
* \addtogroup esb
|
||||||
|
@ -130,8 +130,13 @@ static struct timer rxtimer;
|
||||||
|
|
||||||
static unsigned short tmp_sstrength, sstrength;
|
static unsigned short tmp_sstrength, sstrength;
|
||||||
|
|
||||||
|
#define DEBUG 0
|
||||||
|
#if DEBUG
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#define LOG(...) /*printf(__VA_ARGS__)*/
|
#define LOG(...) printf(__VA_ARGS__)
|
||||||
|
#else
|
||||||
|
#define LOG(...)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#if TR1001_STATISTICS
|
#if TR1001_STATISTICS
|
||||||
|
|
Loading…
Reference in a new issue