Bluetooth: Define log level at bluetooth subsystem level

This commit defines a default log level at bluetooth subsystem
level when module log level is not defined.

Prior to this change, the bluetooth subsystem would use
the firmware default log level.

Signed-off-by: Olivier Martin <olivier.martin@proglove.de>
This commit is contained in:
Olivier Martin 2018-11-22 14:27:32 +01:00 committed by Maureen Helm
commit 58245cd02f
2 changed files with 5 additions and 1 deletions

View file

@ -15,6 +15,10 @@ config BT
if BT
module = BT
module-str = bt
source "subsys/logging/Kconfig.template.log_config"
choice
prompt "Bluetooth Stack Selection"
default BT_HCI

View file

@ -29,7 +29,7 @@ extern "C" {
#if BT_DBG_ENABLED
#define LOG_LEVEL LOG_LEVEL_DBG
#else
#define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
#define LOG_LEVEL CONFIG_BT_LOG_LEVEL
#endif
#include <logging/log.h>