bluetooth: Allow to specify Logging Domain
At the moment all bluetooth logs are prefixed with [bt] making it difficult to understand where the logs belong to. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
6d4763129d
commit
f1f5275779
1 changed files with 2 additions and 0 deletions
|
@ -54,7 +54,9 @@ __printf_like(2, 3) void bt_log(int prio, const char *fmt, ...);
|
|||
|
||||
#elif defined(CONFIG_BLUETOOTH_DEBUG_LOG)
|
||||
|
||||
#if !defined(SYS_LOG_DOMAIN)
|
||||
#define SYS_LOG_DOMAIN "bt"
|
||||
#endif
|
||||
#define SYS_LOG_LEVEL SYS_LOG_LEVEL_DEBUG
|
||||
#include <logging/sys_log.h>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue