equal
deleted
inserted
replaced
4 |
4 |
5 //#define DEBUG_SEND_RECEIVE |
5 //#define DEBUG_SEND_RECEIVE |
6 #define ECMASTER_DEBUG |
6 #define ECMASTER_DEBUG |
7 |
7 |
8 |
8 |
9 #include "../rs232dbg/rs232dbg.h" |
9 //#include "../rs232dbg/rs232dbg.h" |
10 |
10 |
11 |
11 |
12 #ifdef ECMASTER_DEBUG |
12 #ifdef ECMASTER_DEBUG |
13 /* note: prints function name for you */ |
13 /* note: prints function name for you */ |
14 //# define EC_DBG(fmt, args...) SDBG_print(fmt, ## args) |
14 //# define EC_DBG(fmt, args...) SDBG_print(fmt, ## args) |
15 |
15 |
16 #define EC_DBG(fmt, args...) SDBG_print("%s: " fmt, __FUNCTION__ , ## args) |
16 //#define EC_DBG(fmt, args...) SDBG_print("%s: " fmt, __FUNCTION__ , ## args) |
17 //#define EC_DBG(fmt, args...) printk(KERN_INFO fmt, ## args) |
17 #define EC_DBG(fmt, args...) printk(fmt, ## args) |
18 |
|
19 #else |
18 #else |
20 #define EC_DBG(fmt, args...) |
19 #define EC_DBG(fmt, args...) |
21 #endif |
20 #endif |
22 |
21 |
23 |
22 |