ipc: Make log level configurable for RPMsg service and backend
The PRMsg service and backend had hardcoded and incorrectly named log level. Created the Kconfig options for configuring log level of this module. Signed-off-by: Marek Porwisz <marek.porwisz@nordicsemi.no>
This commit is contained in:
parent
254c126236
commit
19727d3c34
3 changed files with 7 additions and 4 deletions
|
@ -119,4 +119,8 @@ config RPMSG_SERVICE_EP_REG_PRIORITY
|
|||
|
||||
If in doubt, do not modify this value.
|
||||
|
||||
module = RPMSG_SERVICE
|
||||
module-str = RPMsg service and backend
|
||||
source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"
|
||||
|
||||
endif # RPMSG_SERVICE
|
||||
|
|
|
@ -14,9 +14,8 @@
|
|||
#include <openamp/open_amp.h>
|
||||
#include <metal/device.h>
|
||||
|
||||
#define LOG_LEVEL LOG_LEVEL_INFO
|
||||
#define LOG_MODULE_NAME rpmsg_backend
|
||||
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
|
||||
LOG_MODULE_REGISTER(LOG_MODULE_NAME, CONFIG_RPMSG_SERVICE_LOG_LEVEL);
|
||||
|
||||
/* Configuration defines */
|
||||
#if !DT_HAS_CHOSEN(zephyr_ipc_shm)
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
|
||||
#include <openamp/open_amp.h>
|
||||
|
||||
#define LOG_LEVEL LOG_LEVEL_INFO
|
||||
|
||||
#define LOG_MODULE_NAME rpmsg_service
|
||||
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
|
||||
LOG_MODULE_REGISTER(LOG_MODULE_NAME, CONFIG_RPMSG_SERVICE_LOG_LEVEL);
|
||||
|
||||
#define MASTER IS_ENABLED(CONFIG_RPMSG_SERVICE_MODE_MASTER)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue