Fix build error #2
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 9 Apr 2020 04:16:09 +0000 (13:16 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Thu, 9 Apr 2020 04:16:09 +0000 (13:16 +0900)
src/NanServiceProvider.cpp

index 992579a6395e629c5ce1bb373b5482d5cb9ad254..9e88e34d8a89e61356ec33dfe283428130eee2ce 100644 (file)
@@ -474,8 +474,10 @@ NanError NanServiceProvider::openDataPath(std::shared_ptr<DataPathConfig> config
 
        config->requestorId = peer->getRequestorId();
        memcpy(config->peerAddr, peer->getMacAddr(), NAN_MAC_ADDR_LEN);
-       NAN_LOGD("Find peer %p. requestorId %u, mac %x:%x:%x:%x:%x:%x)", peer, config->requestorId,
-                       addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
+       NAN_LOGD("Find peer %p. requestorId %u, mac %x:%x:%x:%x:%x:%x)",
+                       peer, config->requestorId,
+                       config->peerAddr[0], config->peerAddr[1], config->peerAddr[2],
+                       config->peerAddr[3], config->peerAddr[4], config->peerAddr[5]);
 
        // Add a data path information.
        NanDataPathInformation *info = mDataPathManager.createDataPathInformation(pubSubId, peer, config);