Remove ble_hs_log; use modlog instead

The host now uses the modlog package to write entries to the
`LOG_MODULE_NIMBLE_HOST` module.  It no longer calls into the log API
directly, so it doesn't need its own log anymore.
This commit is contained in:
Christopher Collins
2018-07-05 17:57:29 -07:00
parent 1749c7e390
commit 05a6b812a3
2 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -20,17 +20,16 @@
#ifndef H_BLE_HS_LOG_
#define H_BLE_HS_LOG_
#include "log/log.h"
#include "modlog/modlog.h"
#ifdef __cplusplus
extern "C" {
#endif
struct os_mbuf;
extern struct log ble_hs_log;
#define BLE_HS_LOG(lvl, ...) \
LOG_ ## lvl(&ble_hs_log, LOG_MODULE_NIMBLE_HOST, __VA_ARGS__)
MODLOG_ ## lvl(LOG_MODULE_NIMBLE_HOST, __VA_ARGS__)
#define BLE_HS_LOG_ADDR(lvl, addr) \
BLE_HS_LOG(lvl, "%02x:%02x:%02x:%02x:%02x:%02x", \
+1 -1
View File
@@ -27,6 +27,7 @@ pkg.keywords:
pkg.deps:
- "@apache-mynewt-core/kernel/os"
- "@apache-mynewt-core/sys/log/modlog"
- "@apache-mynewt-core/util/mem"
- nimble
@@ -45,7 +46,6 @@ pkg.deps.BLE_MESH:
pkg.req_apis:
- ble_transport
- console
- log
- stats
pkg.init: