You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by tu...@apache.org on 2019/04/05 16:34:41 UTC

[mynewt-nimble] branch master updated: logging: Fix logging macro issue #188.

This is an automated email from the ASF dual-hosted git repository.

turon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new b9fabff  logging: Fix logging macro issue #188.
     new 95bb7fe  Merge pull request #388 from turon/fix/188
b9fabff is described below

commit b9fabffd8530755ad91ad41169037df78bdcf072
Author: Martin Turon <mt...@google.com>
AuthorDate: Mon Mar 11 15:16:21 2019 -0700

    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 4964755..3fb1db9 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);