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:
Marek Porwisz 2021-03-03 10:08:07 +01:00 committed by Kumar Gala
commit 19727d3c34
3 changed files with 7 additions and 4 deletions

View file

@ -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

View file

@ -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)

View file

@ -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)