mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
rpmsg/debug: add debug configs and macros
This patch adds debug macros for RPTUN/RPMSG related logging purposes. Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
@@ -2230,6 +2230,38 @@ config DEBUG_PCI_INFO
|
|||||||
Enable PCI driver informational output to SYSLOG.
|
Enable PCI driver informational output to SYSLOG.
|
||||||
|
|
||||||
endif # DEBUG_PCI
|
endif # DEBUG_PCI
|
||||||
|
|
||||||
|
config DEBUG_RPMSG
|
||||||
|
bool "RPMSG Debug Features"
|
||||||
|
default n
|
||||||
|
depends on RPMSG
|
||||||
|
---help---
|
||||||
|
Enable RPMSG driver debug features.
|
||||||
|
|
||||||
|
if DEBUG_RPMSG
|
||||||
|
|
||||||
|
config DEBUG_RPMSG_ERROR
|
||||||
|
bool "RPMSG Error Output"
|
||||||
|
default n
|
||||||
|
depends on DEBUG_ERROR
|
||||||
|
---help---
|
||||||
|
Enable RPMSG driver error output to SYSLOG.
|
||||||
|
|
||||||
|
config DEBUG_RPMSG_WARN
|
||||||
|
bool "RPMSG Warnings Output"
|
||||||
|
default n
|
||||||
|
depends on DEBUG_WARN
|
||||||
|
---help---
|
||||||
|
Enable RPMSG driver warning output to SYSLOG.
|
||||||
|
|
||||||
|
config DEBUG_RPMSG_INFO
|
||||||
|
bool "RPMSG Informational Output"
|
||||||
|
default n
|
||||||
|
depends on DEBUG_INFO
|
||||||
|
---help---
|
||||||
|
Enable RPMSG driver informational output to SYSLOG.
|
||||||
|
|
||||||
|
endif # DEBUG_RPMSG
|
||||||
endif # DEBUG_FEATURES
|
endif # DEBUG_FEATURES
|
||||||
|
|
||||||
config ARCH_HAVE_STACKCHECK
|
config ARCH_HAVE_STACKCHECK
|
||||||
|
|||||||
@@ -938,6 +938,24 @@
|
|||||||
# define pciinfo _none
|
# define pciinfo _none
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_DEBUG_RPMSG_ERROR
|
||||||
|
# define rpmsgerr _err
|
||||||
|
#else
|
||||||
|
# define rpmsgerr _none
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_DEBUG_RPMSG_WARN
|
||||||
|
# define rpmsgwarn _warn
|
||||||
|
#else
|
||||||
|
# define rpmsgwarn _none
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_DEBUG_RPMSG_INFO
|
||||||
|
# define rpmsginfo _info
|
||||||
|
#else
|
||||||
|
# define rpmsginfo _none
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Buffer dumping macros do not depend on varargs */
|
/* Buffer dumping macros do not depend on varargs */
|
||||||
|
|
||||||
#ifdef CONFIG_DEBUG_ERROR
|
#ifdef CONFIG_DEBUG_ERROR
|
||||||
|
|||||||
Reference in New Issue
Block a user