File: log_enable.h

package info (click to toggle)
tinyos 2.1.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 47,476 kB
  • ctags: 36,607
  • sloc: ansic: 63,646; cpp: 14,974; java: 10,358; python: 5,215; makefile: 1,724; sh: 902; asm: 597; xml: 392; perl: 74; awk: 46
file content (44 lines) | stat: -rw-r--r-- 1,246 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
 * @author open-zb http://www.open-zb.net
 * @author Stefano Tennina
 */

//Choose which printfs to enable

#ifndef __LOG_ENABLE_H__
#define __LOG_ENABLE_H__

// XLayer Log Level Settings (enabled only if the LAYERS prints are enabled)
#define ERROR_CONDITIONS	0x01
#define DEBUG_STATUS		0x02
#define TRACE_FUNC			0x04
#define DBG_NEIGHBOR_TABLE	0x08
#define DBG_CUSTOM			0x10
#define TIME_PERFORMANCE	0x20

//#define LOG_LEVEL			(TIME_PERFORMANCE)
//#define LOG_LEVEL			(ERROR_CONDITIONS | DEBUG_STATUS | TRACE_FUNC)
//#define LOG_LEVEL			(ERROR_CONDITIONS)
#define LOG_LEVEL			(0)

// Local ENABLERS

// **********************************************
// ************** APPLICATION *******************
// **********************************************
// Uncomment this to globally enable printfs in APP
//#define APP_PRINTFS_ENABLED

// ******************************************
// ************** NETWORK *******************
// ******************************************
// Uncomment this to globally enable printfs in NWKP.nc
//#define NWK_PRINTFS_ENABLED

// Uncomment this to avoid IEEE154 status parsing messages
//#define DEBUG_STATUS_MESSAGE

// Uncomment this to enable prints of neighbor table
//#define DBG_LIST_NEIGHBOURS

#endif