4 * @brief debuggin macros and flags for the frescan protocol
15 * This module contains macros and flags to enable debugging in the
16 * frescan protocol for MaRTE OS
20 * See MaRTE OS license
24 #ifndef _MARTE_FRESCAN_DEBUG_H_
25 #define _MARTE_FRESCAN_DEBUG_H_
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)
40 * DEBUGGING FLAGS to enable/disable debugging messages
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
62 #endif // _MARTE_FRESCAN_DEBUG_H_