]> rtime.felk.cvut.cz Git - frescor/fna.git/blob - src_frescan/frescan_debug.h
18909e24b29da485560a5ed574eefb3aea5823af
[frescor/fna.git] / src_frescan / frescan_debug.h
1 /*!
2  * @file frecan_debug.h
3  *
4  * @brief debuggin macros and flags for the frescan protocol
5  *
6  * @version 0.01
7  *
8  * @date 21-Feb-2008
9  *
10  * @author
11  *      Daniel Sangorrin
12  *
13  * @comments
14  *
15  * This module contains macros and flags to enable debugging in the
16  * frescan protocol for MaRTE OS
17  *
18  * @license
19  *
20  * See MaRTE OS license
21  *
22  */
23
24 #ifndef _MARTE_FRESCAN_DEBUG_H_
25 #define _MARTE_FRESCAN_DEBUG_H_
26
27 #include <stdio.h>
28 #include <stdbool.h>
29 #include <stdlib.h>
30
31 /**
32  * DEBUG macros
33  **/
34
35 #define DEBUG(enable,x,args...) if(enable) printc("DEBUG (%s): " x, __func__ , ##args)
36 #define ERROR(x,args...) {printe("ERROR (%s:%u): " x, __func__ , __LINE__ , ##args); exit(-1);}
37 #define WARNING(x,args...) printe("WARNING (%s): " x, __func__ , ##args)
38
39 /**
40  * DEBUGGING FLAGS to enable/disable debugging messages
41  **/
42
43 #define FRESCAN_SERVERS_ENABLE_DEBUG    true
44 #define FRESCAN_PACKETPOOL_ENABLE_DEBUG false
45 #define FRESCAN_FRAG_ENABLE_DEBUG       false
46 #define FRESCAN_INIT_ENABLE_DEBUG       false
47 #define FRESCAN_SEND_ENABLE_DEBUG       false
48 #define FRESCAN_RECV_ENABLE_DEBUG       false
49 #define FRESCAN_RX_HOOK_ENABLE_DEBUG    false
50 #define FRESCAN_SENT_HOOK_ENABLE_DEBUG  false
51 #define FRESCAN_QUEUES_ENABLE_DEBUG     false
52 #define FRESCAN_HW_BUFFER_ENABLE_DEBUG  false
53 #define FRESCAN_REPLENSH_ENABLE_DEBUG   true
54 #define FRESCAN_ROBJS_ENABLE_DEBUG      false
55 #define FRESCAN_BWRES_ENABLE_DEBUG      false
56 #define FRESCAN_REQUESTS_ENABLE_DEBUG   false
57 #define FRESCAN_MANAGER_ENABLE_DEBUG    false
58 #define FRESCAN_ACCEPTOR_ENABLE_DEBUG   false
59 #define FRESCAN_FNA_ENABLE_DEBUG        false
60 #define FRESCAN_MESSAGES_ENABLE_DEBUG   false
61
62 #endif // _MARTE_FRESCAN_DEBUG_H_