drivers/rptun: add rptun debug config macros and Kconfig

rptun and rptun driver can use this macro to add debug log

Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
Bowen Wang
2024-08-24 17:18:04 +08:00
committed by GUIDINGLI
parent 3c0a4639ca
commit e20a05dce2
2 changed files with 50 additions and 0 deletions
+32
View File
@@ -2433,6 +2433,38 @@ config DEBUG_RPMSG_INFO
endif # DEBUG_RPMSG
config DEBUG_RPTUN
bool "Rptun Debug Features"
default n
depends on RPTUN
---help---
Enable rptun debug features.
if DEBUG_RPTUN
config DEBUG_RPTUN_ERROR
bool "Rptun Error Output"
default n
depends on DEBUG_ERROR
---help---
Enable rptun error output to SYSLOG.
config DEBUG_RPTUN_WARN
bool "Rptun Warnings Output"
default n
depends on DEBUG_WARN
---help---
Enable rptun warning output to SYSLOG.
config DEBUG_RPTUN_INFO
bool "Rptun Informational Output"
default n
depends on DEBUG_INFO
---help---
Enable rptun informational output to SYSLOG.
endif # DEBUG_RPTUN
config DEBUG_CORESIGHT
bool "Coresight Debug Features"
default n
+18
View File
@@ -1013,6 +1013,24 @@
# define rpmsginfo _none
#endif
#ifdef CONFIG_DEBUG_RPTUN_ERROR
# define rptunerr _err
#else
# define rptunerr _none
#endif
#ifdef CONFIG_DEBUG_RPTUN_WARN
# define rptunwarn _warn
#else
# define rptunwarn _none
#endif
#ifdef CONFIG_DEBUG_RPTUN_INFO
# define rptuninfo _info
#else
# define rptuninfo _none
#endif
#ifdef CONFIG_DEBUG_CORESIGHT_ERROR
# define cserr _err
#else