aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/mediatek/ccci_util/ccci_util_log.h
blob: f5dc4e5879a94bf81095c1cc7c9f6ab030427f79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef __CCCI_UTIL_LOG_H__
#define __CCCI_UTIL_LOG_H__

// No MD id message part
#define CCCI_UTIL_DBG_MSG(fmt, args...) \
do { \
	printk(KERN_DEBUG "[ccci0/util]" fmt, ##args); \
} while(0)

#define CCCI_UTIL_INF_MSG(fmt, args...) \
do { \
	printk(KERN_NOTICE "[ccci0/util]" fmt, ##args); \
} while(0)

#define CCCI_UTIL_ERR_MSG(fmt, args...) \
do { \
	printk(KERN_ERR "[ccci0/util]" fmt, ##args); \
} while(0)

// With MD id message part
#define CCCI_UTIL_DBG_MSG_WITH_ID(id, fmt, args...) \
do { \
	printk(KERN_DEBUG "[ccci%d/util]" fmt, (id+1), ##args); \
} while(0)

#define CCCI_UTIL_INF_MSG_WITH_ID(id, fmt, args...) \
do { \
	printk(KERN_NOTICE "[ccci%d/util]" fmt, (id+1), ##args); \
} while(0)

#define CCCI_UTIL_ERR_MSG_WITH_ID(id, fmt, args...) \
do { \
	printk(KERN_ERR "[ccci%d/util]" fmt, (id+1), ##args); \
} while(0)


#endif //__CCCI_UTIL_LOG_H__