Some Logging Cleanup (#810)

* Remove unnecessary WPP definition.
* Various other small fixes.
This commit is contained in:
Nick Banks
2016-10-20 10:30:53 -07:00
committed by Jonathan Hui
parent 606b6e5900
commit 7a19067515
28 changed files with 596 additions and 246 deletions
+9
View File
@@ -31,6 +31,8 @@
* This file implements IPv6 networking.
*/
#define WPP_NAME "ip6.tmh"
#include <common/code_utils.hpp>
#include <common/debug.hpp>
#include <common/logging.hpp>
@@ -430,6 +432,8 @@ ThreadError Ip6::HandleDatagram(Message &message, Netif *netif, int8_t interface
uint8_t nextHeader;
uint8_t hopLimit;
otLogFuncEntry();
#if 0
uint8_t buf[1024];
message.Read(0, sizeof(buf), buf);
@@ -533,6 +537,7 @@ exit:
message.Free();
}
otLogFuncExitErr(error);
return error;
}
@@ -542,6 +547,8 @@ ThreadError Ip6::ForwardMessage(Message &message, MessageInfo &messageInfo, uint
int8_t interfaceId;
Netif *netif;
otLogFuncEntry();
if (messageInfo.GetSockAddr().IsMulticast())
{
// multicast
@@ -590,6 +597,8 @@ ThreadError Ip6::ForwardMessage(Message &message, MessageInfo &messageInfo, uint
SuccessOrExit(error = netif->SendMessage(message));
exit:
otLogFuncExitErr(error);
return error;
}