// TODO use VERIFY macros to check for null when they are merged.
if(NULL == firstId || NULL == secondId)
{
+ OIC_LOG_V(ERROR, TAG, "%s - %s is NULL",__func__, firstId ? "secondId" : "firstId");
return false;
}
// Check empty uuid string
if('\0' == firstId->id[0] || '\0' == secondId->id[0])
{
+ OIC_LOG_V(ERROR, TAG, "%s - %s is empty",__func__, '\0' == firstId->id[0] ? "firstId" : "secondId");
return false;
}
for(int i = 0; i < UUID_LENGTH; i++)
{
if(firstId->id[i] != secondId->id[i])
{
+ OIC_LOG_V(ERROR, TAG, "%s - Uuids are not equal " ,__func__);
return false;
}
}
if(NULL == context)
{
+ OIC_LOG_V(ERROR, TAG, "%s: context is NULL", __func__);
return retVal;
}
if (doxm)
{
retVal = UuidCmp(&doxm->owner, &context->subject);
+ char *strUuid = NULL;
+ ConvertUuidToStr(&doxm->owner, &strUuid);
+ OIC_LOG_V(ERROR, TAG, "%s: Owner UUID: %s", __func__, strUuid ? strUuid : "NULL");
+ OICFree(strUuid);
+
+ strUuid = NULL;
+ ConvertUuidToStr(&context->subject, &strUuid);
+ OIC_LOG_V(ERROR, TAG, "%s: Context subject: %s", __func__, strUuid ? strUuid : "NULL");
+ OICFree(strUuid);
+ }
+ else
+ {
+ OIC_LOG_V(ERROR, TAG, "%s: doxm is NULL", __func__);
}
+ OIC_LOG_V(INFO, TAG, "%s: return val: %s", __func__, retVal ? "True" : "False");
return retVal;
}