diff --git a/Kconfig b/Kconfig index 921cfc33e2f..8fbca17e70b 100644 --- a/Kconfig +++ b/Kconfig @@ -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 diff --git a/include/debug.h b/include/debug.h index 7c96eaf5994..e44394f79c9 100644 --- a/include/debug.h +++ b/include/debug.h @@ -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