Fix VD KONA issue 92/155192/1
authorHongkuk, Son <hongkuk.son@samsung.com>
Thu, 12 Oct 2017 09:05:49 +0000 (18:05 +0900)
committerHongkuk, Son <hongkuk.son@samsung.com>
Thu, 12 Oct 2017 09:06:30 +0000 (18:06 +0900)
 - RQ170930-00358
 - Format arguments do not match specifiers in calls to dlog functions

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: Ifb7bddc52a7dfa8b18c7fc2240109ea0603a2650

src/ic-ioty-convert.c
src/ic-ioty.c
src/ic-representation.c

index b548b92..e6fd942 100644 (file)
@@ -452,7 +452,7 @@ static int _icl_ioty_fill_oic_rep_payload_value(OCRepPayload *payload,
        while (g_hash_table_iter_next(&iter, &key, &value)) {
                attributes_value = (struct icl_value_s *)value;
                if (NULL == attributes_value) {
-                       ERR("attributes_value(%s) is NULL", key);
+                       ERR("attributes_value(%s) is NULL", (char *)key);
                        continue;
                }
 
index 3698779..9956f9a 100644 (file)
@@ -386,7 +386,7 @@ static char* _icl_ioty_resource_generate_uri(const char *uri_path, iotcon_query_
                g_hash_table_iter_init(&iter, query->hash);
                while (g_hash_table_iter_next(&iter, &key, &value)) {
                        int query_len;
-                       DBG("query exist. key(%s), value(%s)", key, value);
+                       DBG("query exist. key(%s), value(%s)", (char *)key, (char *)value);
 
                        if (true == loop_first) {
                                query_len = snprintf(uri_buf + len, sizeof(uri_buf) - len, "?%s=%s",
index e446d6d..3acb8f7 100644 (file)
@@ -333,7 +333,7 @@ int icl_representation_clone(const iotcon_representation_h src,
        if (src->interfaces) {
                ret = icl_resource_interfaces_clone(src->interfaces, &ifaces);
                if (IOTCON_ERROR_NONE != ret) {
-                       ERR("icl_resource_interfaces_clone() Fail(%d)");
+                       ERR("icl_resource_interfaces_clone() Fail(%d)", ret);
                        icl_representation_destroy(cloned_repr);
                        return ret;
                }
@@ -343,7 +343,7 @@ int icl_representation_clone(const iotcon_representation_h src,
        if (src->res_types) {
                ret = icl_resource_types_clone(src->res_types, &types);
                if (IOTCON_ERROR_NONE != ret) {
-                       ERR("icl_resource_types_clone() Fail");
+                       ERR("icl_resource_types_clone() Fail(%d)", ret);
                        icl_representation_destroy(cloned_repr);
                        return ret;
                }