kernel-brax3-ubuntu-touch/sound/soc/codecs/aw87xxx/aw87xxx_log.h
erascape f319b992b1 kernel-5.15: Initial import brax3 UT kernel
* halium configs enabled

Signed-off-by: erascape <erascape@proton.me>
2025-09-23 15:17:10 +00:00

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