hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
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
/* SPDX-License-Identifier: GPL-2.0+ */
 
#ifndef __AW_LOG_H__
#define __AW_LOG_H__
 
#include <linux/kernel.h>
 
 
/********************************************
 *
 * print information control
 *
 *******************************************/
#define AW_LOGI(fmt, ...)\
   pr_info("[Awinic] %s:" fmt "\n", __func__, ##__VA_ARGS__)
 
#define AW_LOGD(fmt, ...)\
   pr_debug("[Awinic] %s:" fmt "\n", __func__, ##__VA_ARGS__)
 
#define AW_LOGE(fmt, ...)\
   pr_err("[Awinic] %s:" fmt "\n", __func__, ##__VA_ARGS__)
 
 
#define AW_DEV_LOGI(dev, fmt, ...)\
   pr_info("[Awinic] [%s]%s: " fmt "\n", dev_name(dev), __func__, ##__VA_ARGS__)
 
#define AW_DEV_LOGD(dev, fmt, ...)\
   pr_debug("[Awinic] [%s]%s: " fmt "\n", dev_name(dev), __func__, ##__VA_ARGS__)
 
#define AW_DEV_LOGE(dev, fmt, ...)\
   pr_err("[Awinic] [%s]%s: " fmt "\n", dev_name(dev), __func__, ##__VA_ARGS__)
 
 
 
#endif