fp@0: #ifndef ECDBG_H_ fp@0: #define ECDBG_H_ fp@0: fp@0: fp@0: //#define DEBUG_SEND_RECEIVE fp@0: #define ECMASTER_DEBUG fp@0: fp@0: fp@5: //#include "../rs232dbg/rs232dbg.h" fp@0: fp@0: fp@0: #ifdef ECMASTER_DEBUG fp@0: /* note: prints function name for you */ fp@0: //# define EC_DBG(fmt, args...) SDBG_print(fmt, ## args) fp@0: fp@5: //#define EC_DBG(fmt, args...) SDBG_print("%s: " fmt, __FUNCTION__ , ## args) fp@5: #define EC_DBG(fmt, args...) printk(fmt, ## args) fp@0: #else fp@0: #define EC_DBG(fmt, args...) fp@0: #endif fp@0: fp@0: fp@0: #endif