From b9fabffd8530755ad91ad41169037df78bdcf072 Mon Sep 17 00:00:00 2001 From: Martin Turon Date: Mon, 11 Mar 2019 15:16:21 -0700 Subject: [PATCH] logging: Fix logging macro issue #188. --- nimble/host/include/host/ble_hs_log.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nimble/host/include/host/ble_hs_log.h b/nimble/host/include/host/ble_hs_log.h index 4964755fb..3fb1db978 100644 --- a/nimble/host/include/host/ble_hs_log.h +++ b/nimble/host/include/host/ble_hs_log.h @@ -32,9 +32,10 @@ struct os_mbuf; 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", \ - (addr)[5], (addr)[4], (addr)[3], \ - (addr)[2], (addr)[1], (addr)[0]) + MODLOG_ ## lvl(LOG_MODULE_NIMBLE_HOST, \ + "%02x:%02x:%02x:%02x:%02x:%02x", \ + (addr)[5], (addr)[4], (addr)[3], \ + (addr)[2], (addr)[1], (addr)[0]) void ble_hs_log_mbuf(const struct os_mbuf *om); void ble_hs_log_flat_buf(const void *data, int len);