diff --git a/nimble/host/include/host/ble_hs_log.h b/nimble/host/include/host/ble_hs_log.h index 3e1ded4cdd..1514a2ba5c 100644 --- a/nimble/host/include/host/ble_hs_log.h +++ b/nimble/host/include/host/ble_hs_log.h @@ -20,12 +20,6 @@ #ifndef H_BLE_HS_LOG_ #define H_BLE_HS_LOG_ -#ifndef BLE_NPL_LOG_MODULE -#define BLE_NPL_LOG_MODULE BLE_HS_LOG -#endif - -#include - /** * @file ble_hs_log.h * @@ -39,6 +33,13 @@ * @{ */ +#ifndef BLE_NPL_LOG_MODULE +/** Defines the logging module for NimBLE Porting Layer (NPL). */ +#define BLE_NPL_LOG_MODULE BLE_HS_LOG +#endif + +#include + #ifdef __cplusplus extern "C" { #endif @@ -103,4 +104,4 @@ void ble_hs_log_flat_buf(const void *data, int len); * @} */ -#endif +#endif /* H_BLE_HS_LOG_*/