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);