static OCStackResult updateDeviceState(const OicUuid_t *uuid, PdmDeviceState_t state)
{
OIC_LOG_V(DEBUG, TAG, "IN %s", __func__);
- OIC_LOG_V(WARNING, TAG, "UUID is: %s", (char*) uuid);
+
+ char* strUuid = NULL;
+ if (OC_STACK_OK != ConvertUuidToStr(uuid, &strUuid))
+ {
+ OIC_LOG(WARNING, TAG, "ConvertUuidToStr error");
+ }
+ OIC_LOG_V(WARNING, TAG, "UUID is: %s", strUuid);
+ OICFree(strUuid);
sqlite3_stmt *stmt = 0;
int res = 0 ;