mirror of
https://github.com/espressif/openthread.git
synced 2026-07-10 22:30:21 +00:00
[logging] remove otLogFunc<Entry/Exit> macros (#2438)
This commit is contained in:
committed by
Jonathan Hui
parent
16f3213973
commit
f366e4f987
@@ -48,8 +48,6 @@ otError otIp6SetEnabled(otInstance *aInstance, bool aEnabled)
|
||||
otError error = OT_ERROR_NONE;
|
||||
Instance &instance = *static_cast<Instance *>(aInstance);
|
||||
|
||||
otLogFuncEntry();
|
||||
|
||||
if (aEnabled)
|
||||
{
|
||||
#if OPENTHREAD_ENABLE_RAW_LINK_API
|
||||
@@ -68,7 +66,6 @@ otError otIp6SetEnabled(otInstance *aInstance, bool aEnabled)
|
||||
#if OPENTHREAD_ENABLE_RAW_LINK_API
|
||||
exit:
|
||||
#endif // OPENTHREAD_ENABLE_RAW_LINK_API
|
||||
otLogFuncExitErr(error);
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -189,13 +186,9 @@ otError otIp6Send(otInstance *aInstance, otMessage *aMessage)
|
||||
otError error;
|
||||
Instance &instance = *static_cast<Instance *>(aInstance);
|
||||
|
||||
otLogFuncEntry();
|
||||
|
||||
error = instance.GetIp6().SendRaw(*static_cast<Message *>(aMessage),
|
||||
instance.GetThreadNetif().GetInterfaceId());
|
||||
|
||||
otLogFuncExitErr(error);
|
||||
|
||||
return error;
|
||||
}
|
||||
|
||||
@@ -204,7 +197,6 @@ otMessage *otIp6NewMessage(otInstance *aInstance, bool aLinkSecurityEnabled)
|
||||
Instance &instance = *static_cast<Instance *>(aInstance);
|
||||
Message *message = instance.GetMessagePool().New(Message::kTypeIp6, 0);
|
||||
|
||||
|
||||
if (message)
|
||||
{
|
||||
message->SetLinkSecurityEnabled(aLinkSecurityEnabled);
|
||||
|
||||
Reference in New Issue
Block a user