Update OpenThread Logging to include otInstance Pointer (#1436)

* Update OpenThread Logging to include otInstance Pointer.
This commit is contained in:
Nick Banks
2017-03-08 12:40:49 -08:00
committed by Jonathan Hui
parent a17c6876ac
commit 1c18f45bfe
47 changed files with 747 additions and 490 deletions
+4 -3
View File
@@ -102,7 +102,6 @@ otInstance *otInstanceInit(void *aInstanceBuffer, size_t *aInstanceBufferSize)
otInstance *aInstance = NULL;
otLogFuncEntry();
otLogInfoApi("otInstanceInit");
VerifyOrExit(aInstanceBufferSize != NULL, ;);
@@ -117,6 +116,8 @@ otInstance *otInstanceInit(void *aInstanceBuffer, size_t *aInstanceBufferSize)
// Execute post constructor operations
otInstancePostConstructor(aInstance);
otLogInfoApi(aInstance, "otInstance Initialized");
exit:
otLogFuncExit();
@@ -129,8 +130,6 @@ otInstance *otInstanceInit()
{
otLogFuncEntry();
otLogInfoApi("otInstanceInit");
VerifyOrExit(sInstance == NULL, ;);
// Construct the context
@@ -139,6 +138,8 @@ otInstance *otInstanceInit()
// Execute post constructor operations
otInstancePostConstructor(sInstance);
otLogInfoApi(sInstance, "otInstance Initialized");
exit:
otLogFuncExit();