hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* SPDX-License-Identifier: GPL-2.0+ */
 
#ifndef __AWINIC_LOG_H__
#define __AWINIC_LOG_H__
 
/********************************************
 * print information control
 *******************************************/
#define aw_dev_err(dev, format, ...) \
   do { \
       pr_err("[Awinic][%s]%s: " format "\n", dev_name(dev), __func__, ##__VA_ARGS__); \
   } while (0)
#ifdef AW_INFO_LOG_ENABLE
#define aw_dev_info(dev, format, ...) \
   do { \
       pr_info("[Awinic][%s]%s: " format "\n", dev_name(dev), __func__, ##__VA_ARGS__); \
   } while (0)
#else
#define aw_dev_info(dev, format, ...) \
   do { \
       pr_debug("[Awinic][%s]%s: " format "\n", dev_name(dev), __func__, ##__VA_ARGS__); \
   } while (0)
#endif
 
#define aw_dev_dbg(dev, format, ...) \
   do { \
       pr_debug("[Awinic][%s]%s: " format "\n", dev_name(dev), __func__, ##__VA_ARGS__); \
   } while (0)
 
#define aw_pr_err(format, ...) \
   do { \
       pr_err("[Awinic]%s: " format "\n", __func__, ##__VA_ARGS__); \
   } while (0)
#ifdef AW_INFO_LOG_ENABLE
#define aw_pr_info(format, ...) \
   do { \
       pr_info("[Awinic]%s: " format "\n", __func__, ##__VA_ARGS__); \
   } while (0)
 
#else
#define aw_pr_info(format, ...) \
   do { \
       pr_debug("[Awinic]%s: " format "\n", __func__, ##__VA_ARGS__); \
   } while (0)
#endif
 
#define aw_pr_dbg(format, ...) \
   do { \
       pr_debug("[Awinic]%s: " format "\n", __func__, ##__VA_ARGS__); \
   } while (0)
 
 
#endif