summaryrefslogtreecommitdiff
path: root/resource
diff options
context:
space:
mode:
authorOleksii Beketov <ol.beketov@samsung.com>2020-02-03 15:59:37 +0200
committerDoHyun Pyun <dh79.pyun@samsung.com>2020-02-19 09:07:52 +0900
commite921b65b421b01c562dacee74614ada071ab02ea (patch)
treeb394d13d81d50e99e025f656dbfd20868136912f /resource
parentbca86f4c16172223266130b2de588a75bcbc7013 (diff)
downloadiotivity-e921b65b421b01c562dacee74614ada071ab02ea.tar.gz
iotivity-e921b65b421b01c562dacee74614ada071ab02ea.tar.bz2
iotivity-e921b65b421b01c562dacee74614ada071ab02ea.zip
Add uuid convert
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/661 (cherry-picked from 43c552c67605b0e6a5980d85a897673233aff370) Change-Id: Ia4e40da6f6cd56fe6827b9e588957a67804d1471 Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Diffstat (limited to 'resource')
-rw-r--r--resource/csdk/security/provisioning/src/provisioningdatabasemanager.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/resource/csdk/security/provisioning/src/provisioningdatabasemanager.c b/resource/csdk/security/provisioning/src/provisioningdatabasemanager.c
index 93ce7de04..670d299bf 100644
--- a/resource/csdk/security/provisioning/src/provisioningdatabasemanager.c
+++ b/resource/csdk/security/provisioning/src/provisioningdatabasemanager.c
@@ -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 ;