oic; add stubs of mbuf logging macros when OC_LOGGING is not defined.

Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/f8143c73
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/f8143c73
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/f8143c73

Branch: refs/heads/develop
Commit: f8143c739b3034a0a50315eefdeb896872a87fb0
Parents: 3ab3086
Author: Marko Kiiskila <[email protected]>
Authored: Fri Jan 6 13:19:55 2017 -0800
Committer: Marko Kiiskila <[email protected]>
Committed: Fri Jan 6 15:03:01 2017 -0800

----------------------------------------------------------------------
 net/oic/include/oic/oc_log.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f8143c73/net/oic/include/oic/oc_log.h
----------------------------------------------------------------------
diff --git a/net/oic/include/oic/oc_log.h b/net/oic/include/oic/oc_log.h
index f97015c..791a3aa 100644
--- a/net/oic/include/oic/oc_log.h
+++ b/net/oic/include/oic/oc_log.h
@@ -69,7 +69,6 @@ void oc_log_bytes_mbuf(uint16_t lvl, struct os_mbuf *, int 
off, int len,
             oc_log_bytes(lvl, addr, len, 0);                            \
         }                                                               \
     } while(0)
-#else
 
 #define OC_LOG_HEX_MBUF(lvl, m, off, len)                               \
     do {                                                                \
@@ -78,12 +77,16 @@ void oc_log_bytes_mbuf(uint16_t lvl, struct os_mbuf *, int 
off, int len,
         }                                                               \
     } while(0)
 
+#else
+
 #define OC_LOG_DEBUG(...)
 #define OC_LOG_INFO(...)
 #define OC_LOG_ERROR(...)
 #define OC_LOG_ENDPOINT(...)
 #define OC_LOG_STR(...)
+#define OC_LOG_STR_MBUF(...)
 #define OC_LOG_HEX(...)
+#define OC_LOG_HEX_MBUF(...)
 
 #endif
 

Reply via email to