1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 3 #ifndef __AW_LOG_H__ 4 #define __AW_LOG_H__ 5 6 #include <linux/kernel.h> 7 8 9 /******************************************** 10 * 11 * print information control 12 * 13 *******************************************/ 14 #define AW_LOGI(fmt, ...)\ 15 pr_info("[Awinic] %s:" fmt "\n", __func__, ##__VA_ARGS__) 16 17 #define AW_LOGD(fmt, ...)\ 18 pr_debug("[Awinic] %s:" fmt "\n", __func__, ##__VA_ARGS__) 19 20 #define AW_LOGE(fmt, ...)\ 21 pr_err("[Awinic] %s:" fmt "\n", __func__, ##__VA_ARGS__) 22 23 24 #define AW_DEV_LOGI(dev, fmt, ...)\ 25 pr_info("[Awinic] [%s]%s: " fmt "\n", dev_name(dev), __func__, ##__VA_ARGS__) 26 27 #define AW_DEV_LOGD(dev, fmt, ...)\ 28 pr_debug("[Awinic] [%s]%s: " fmt "\n", dev_name(dev), __func__, ##__VA_ARGS__) 29 30 #define AW_DEV_LOGE(dev, fmt, ...)\ 31 pr_err("[Awinic] [%s]%s: " fmt "\n", dev_name(dev), __func__, ##__VA_ARGS__) 32 33 34 35 #endif 36