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:
Andrei Emeltchenko 2017-05-31 13:47:56 +03:00 committed by Johan Hedberg
commit f1f5275779

View file

@ -54,7 +54,9 @@ __printf_like(2, 3) void bt_log(int prio, const char *fmt, ...);
#elif defined(CONFIG_BLUETOOTH_DEBUG_LOG) #elif defined(CONFIG_BLUETOOTH_DEBUG_LOG)
#if !defined(SYS_LOG_DOMAIN)
#define SYS_LOG_DOMAIN "bt" #define SYS_LOG_DOMAIN "bt"
#endif
#define SYS_LOG_LEVEL SYS_LOG_LEVEL_DEBUG #define SYS_LOG_LEVEL SYS_LOG_LEVEL_DEBUG
#include <logging/sys_log.h> #include <logging/sys_log.h>