mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user