mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-10 12:07:55 +00:00
nimble/host: Remove BLE_HS_LOG_* defines
These defines were left out for compatibility but as we move porting examples to use generated LOG macros we have to remove these.
This commit is contained in:
@@ -21,8 +21,10 @@
|
||||
#define H_BLE_HS_LOG_
|
||||
|
||||
#include "modlog/modlog.h"
|
||||
#if MYNEWT
|
||||
#include "os/mynewt.h"
|
||||
|
||||
/* Only include the logcfg header if this version of newt can generate it. */
|
||||
#if MYNEWT_VAL(NEWT_FEATURE_LOGCFG)
|
||||
#include "logcfg/logcfg.h"
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -31,20 +33,6 @@ extern "C" {
|
||||
|
||||
struct os_mbuf;
|
||||
|
||||
/* Logging macros are generated automatically for Mynewt. Define them here for
|
||||
* other OSes.
|
||||
*/
|
||||
#if !MYNEWT
|
||||
|
||||
#define BLE_HS_LOG_DEBUG(...) MODLOG_DEBUG(LOG_MODULE_NIMBLE_HOST, __VA_ARGS__)
|
||||
#define BLE_HS_LOG_INFO(...) MODLOG_INFO(LOG_MODULE_NIMBLE_HOST, __VA_ARGS__)
|
||||
#define BLE_HS_LOG_WARN(...) MODLOG_WARN(LOG_MODULE_NIMBLE_HOST, __VA_ARGS__)
|
||||
#define BLE_HS_LOG_ERROR(...) MODLOG_ERROR(LOG_MODULE_NIMBLE_HOST, __VA_ARGS__)
|
||||
#define BLE_HS_LOG_CRITICAL(...) \
|
||||
MODLOG_CRITICAL(LOG_MODULE_NIMBLE_HOST, __VA_ARGS__)
|
||||
|
||||
#endif
|
||||
|
||||
#define BLE_HS_LOG(lvl, ...) \
|
||||
BLE_HS_LOG_ ## lvl(__VA_ARGS__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user