mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-04 22:07:22 +00:00
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:
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user