/* SPDX-License-Identifier: GPL-2.0 * aw87xxx_log.h * * Copyright (c) 2021 AWINIC Technology CO., LTD * * Author: Barry * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. */ #ifndef __AW87XXX_LOG_H__ #define __AW87XXX_LOG_H__ #include /******************************************** * * 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