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:
parent
2652a81d98
commit
58245cd02f
2 changed files with 5 additions and 1 deletions
|
@ -15,6 +15,10 @@ config BT
|
||||||
|
|
||||||
if BT
|
if BT
|
||||||
|
|
||||||
|
module = BT
|
||||||
|
module-str = bt
|
||||||
|
source "subsys/logging/Kconfig.template.log_config"
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Bluetooth Stack Selection"
|
prompt "Bluetooth Stack Selection"
|
||||||
default BT_HCI
|
default BT_HCI
|
||||||
|
|
|
@ -29,7 +29,7 @@ extern "C" {
|
||||||
#if BT_DBG_ENABLED
|
#if BT_DBG_ENABLED
|
||||||
#define LOG_LEVEL LOG_LEVEL_DBG
|
#define LOG_LEVEL LOG_LEVEL_DBG
|
||||||
#else
|
#else
|
||||||
#define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
|
#define LOG_LEVEL CONFIG_BT_LOG_LEVEL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <logging/log.h>
|
#include <logging/log.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue