46 lines
1.3 KiB
C
Executable file
46 lines
1.3 KiB
C
Executable file
/* SPDX-License-Identifier: GPL-2.0
|
|
* aw87xxx_log.h
|
|
*
|
|
* Copyright (c) 2021 AWINIC Technology CO., LTD
|
|
*
|
|
* Author: Barry <zhaozhongbo@awinic.com>
|
|
*
|
|
* 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 <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
|