bluetooth: monitor: don't build backend if minimal
Log backends don't exist with minimal logging enabled, don't compile this code. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
a7787c8519
commit
1b900bf546
1 changed files with 2 additions and 0 deletions
|
@ -216,6 +216,7 @@ extern void __stdout_hook_install(int (*fn)(int));
|
||||||
#define CONFIG_BT_MONITOR_ON_DEV_NAME CONFIG_UART_CONSOLE_ON_DEV_NAME
|
#define CONFIG_BT_MONITOR_ON_DEV_NAME CONFIG_UART_CONSOLE_ON_DEV_NAME
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef CONFIG_LOG_MINIMAL
|
||||||
struct monitor_log_ctx {
|
struct monitor_log_ctx {
|
||||||
size_t total_len;
|
size_t total_len;
|
||||||
char msg[MONITOR_MSG_MAX];
|
char msg[MONITOR_MSG_MAX];
|
||||||
|
@ -319,6 +320,7 @@ static const struct log_backend_api monitor_log_api = {
|
||||||
};
|
};
|
||||||
|
|
||||||
LOG_BACKEND_DEFINE(bt_monitor, monitor_log_api, true);
|
LOG_BACKEND_DEFINE(bt_monitor, monitor_log_api, true);
|
||||||
|
#endif /* CONFIG_LOG_MINIMAL */
|
||||||
|
|
||||||
static int bt_monitor_init(struct device *d)
|
static int bt_monitor_init(struct device *d)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue