type casting void * to char * 70/305970/1
authordyamy-lee <dyamy.lee@samsung.com>
Tue, 13 Feb 2024 11:36:07 +0000 (20:36 +0900)
committerdyamy-lee <dyamy.lee@samsung.com>
Tue, 13 Feb 2024 11:47:41 +0000 (20:47 +0900)
To print the value, it needs type casting as 'char *'. So, this patch added it.

Change-Id: Ib49b1e5e334346e0d5754a85a3eed05bd113de13

src/vc_elm_core.c

index 9513046..1cbf88c 100644 (file)
@@ -892,7 +892,7 @@ static Eina_List *__get_ctxpopup_objects_of_visible_items(Evas_Object *widget)
                Evas_Object *ee = eina_list_data_get(tmp_list);
                eina_hash_foreach(command_item_map, __item_item_map_foreach, ee);
                VC_ELM_LOG_DBG("ctx popup object(%p)(%s)", ee, EVAS_OBJECT_TYPE_GET(ee));
-               VC_ELM_LOG_DBG("cmd(%s) hint(%s)", evas_object_data_get(ee, VC_ELM_CMD_DATA_KEY), evas_object_data_get(ee, VC_ELM_HINT_DATA_KEY));
+               VC_ELM_LOG_DBG("cmd(%s) hint(%s)", (char *) evas_object_data_get(ee, VC_ELM_CMD_DATA_KEY), (char *) evas_object_data_get(ee, VC_ELM_HINT_DATA_KEY));
                if (evas_object_data_get(ee, VC_ELM_CMD_DATA_KEY) || evas_object_data_get(ee, VC_ELM_HINT_DATA_KEY))
                        ret = eina_list_append(ret, (void *)ee);
        } while ((tmp_list = eina_list_next(tmp_list)) != NULL);
@@ -1476,7 +1476,7 @@ static void __vc_add_commands()
 
                obj_name = eina_stringshare_add(obj_name);
 
-               VC_ELM_LOG_DBG("evas_obj(%p), command %s", (void*)obj, evas_object_data_get(obj, VC_ELM_CMD_DATA_KEY));
+               VC_ELM_LOG_DBG("evas_obj(%p), command %s", (void*)obj, (char *) evas_object_data_get(obj, VC_ELM_CMD_DATA_KEY));
                if (obj_name)
                        VC_ELM_LOG_DBG("Adding command for %s", obj_name);
                if ((!obj_name && evas_object_data_get(obj, "special_item")) || (obj_name && (!strcmp(obj_name, "Elm_Layout") && evas_object_data_get(obj, "special_item"))))