You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2017/02/24 19:38:00 UTC

[05/50] incubator-mynewt-core git commit: oic; fix endpoint logging at RX, used wrong pointer as data.

oic; fix endpoint logging at RX, used wrong pointer as data.


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/896011d5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/896011d5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/896011d5

Branch: refs/heads/develop
Commit: 896011d558e8b4dd44693db1b5e9cf5afa884f6f
Parents: 645a5b7
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Dec 16 15:39:39 2016 -0800
Committer: Sterling Hughes <st...@apache.org>
Committed: Sun Dec 18 13:56:17 2016 -0800

----------------------------------------------------------------------
 net/oic/src/api/oc_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/896011d5/net/oic/src/api/oc_buffer.c
----------------------------------------------------------------------
diff --git a/net/oic/src/api/oc_buffer.c b/net/oic/src/api/oc_buffer.c
index 7c3b477..7bca928 100644
--- a/net/oic/src/api/oc_buffer.c
+++ b/net/oic/src/api/oc_buffer.c
@@ -160,7 +160,7 @@ oc_buffer_rx(struct os_event *ev)
             goto free_msg;
         }
         OC_LOG_DEBUG("oc_buffer_rx: ");
-        OC_LOG_ENDPOINT(LOG_LEVEL_DEBUG, &msg->endpoint);
+        OC_LOG_ENDPOINT(LOG_LEVEL_DEBUG, OC_MBUF_ENDPOINT(m));
 
         if (OS_MBUF_PKTHDR(m)->omp_len > MAX_PAYLOAD_SIZE) {
             STATS_INC(coap_stats, itoobig);