Add uuid convert
[platform/upstream/iotivity.git] / resource / csdk / security / provisioning / src / provisioningdatabasemanager.c
index 93ce7de..670d299 100644 (file)
@@ -1118,7 +1118,14 @@ OCStackResult PDMIsLinkExists(const OicUuid_t* uuidOfDevice1, const OicUuid_t* u
 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 ;