123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- #ifndef DEBUG_HEADER
- #define DEBUG_HEADER
- #define QUALCOMM_DEBUG 1
- #define QUALCOMM_TRACE 1
- #if QUALCOMM_TRACE
- #define EVENT(s) printk(KERN_DEBUG "---[ %s ]---\n", (s))
- #define ENTER printk(KERN_DEBUG "-->[ %s:%d ]\n", __func__,__LINE__)
- #define ABORT printk(KERN_DEBUG "<--( %s:%d )\n", __func__,__LINE__)
- #define LEAVE printk(KERN_DEBUG "<--[ %s:%d ]\n", __func__,__LINE__)
- #define CRUMB printk(KERN_DEBUG "... %s:%d\n",__func__,__LINE__)
- #else
- #define EVENT {}
- #define ENTER {}
- #define ABORT {}
- #define LEAVE {}
- #define CRUMB {}
- #endif
- #if QUALCOMM_DEBUG
- #define address(e) if (!(e)) { printk ("%s(%d): address %s is null\n",__func__,__LINE__,#e); }
- #define confirm(e) if (!(e)) { printk ("%s(%d): assertion %s is wrong\n",__func__,__LINE__, #e); }
- #else
- #define address(e) {}
- #define confirm(e) {}
- #endif
- #endif
|