import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / misc / mediatek / ccci_util / ccci_util_log.h
1 #ifndef __CCCI_UTIL_LOG_H__
2 #define __CCCI_UTIL_LOG_H__
3
4 // No MD id message part
5 #define CCCI_UTIL_DBG_MSG(fmt, args...) \
6 do { \
7 printk(KERN_DEBUG "[ccci0/util]" fmt, ##args); \
8 } while(0)
9
10 #define CCCI_UTIL_INF_MSG(fmt, args...) \
11 do { \
12 printk(KERN_NOTICE "[ccci0/util]" fmt, ##args); \
13 } while(0)
14
15 #define CCCI_UTIL_ERR_MSG(fmt, args...) \
16 do { \
17 printk(KERN_ERR "[ccci0/util]" fmt, ##args); \
18 } while(0)
19
20 // With MD id message part
21 #define CCCI_UTIL_DBG_MSG_WITH_ID(id, fmt, args...) \
22 do { \
23 printk(KERN_DEBUG "[ccci%d/util]" fmt, (id+1), ##args); \
24 } while(0)
25
26 #define CCCI_UTIL_INF_MSG_WITH_ID(id, fmt, args...) \
27 do { \
28 printk(KERN_NOTICE "[ccci%d/util]" fmt, (id+1), ##args); \
29 } while(0)
30
31 #define CCCI_UTIL_ERR_MSG_WITH_ID(id, fmt, args...) \
32 do { \
33 printk(KERN_ERR "[ccci%d/util]" fmt, (id+1), ##args); \
34 } while(0)
35
36
37 #endif //__CCCI_UTIL_LOG_H__