Bluetooth: Fix BT log level config won't take effect
BT log module should be registered as user configured level, instead of using default log level Signed-off-by: Alex Li <lizhiqin46783937@live.com>
This commit is contained in:
parent
9091a0103d
commit
198013ad9f
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ extern "C" {
|
|||
#define LOG_LEVEL CONFIG_BT_LOG_LEVEL
|
||||
#endif
|
||||
|
||||
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
|
||||
LOG_MODULE_REGISTER(LOG_MODULE_NAME, LOG_LEVEL);
|
||||
|
||||
#define BT_DBG(fmt, ...) LOG_DBG(fmt, ##__VA_ARGS__)
|
||||
#define BT_ERR(fmt, ...) LOG_ERR(fmt, ##__VA_ARGS__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue