e_devicemgr: add error logs when failing to alloc structure 38/284138/1
authorduna.oh <duna.oh@samsung.com>
Mon, 7 Nov 2022 08:22:08 +0000 (17:22 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 10 Nov 2022 09:43:41 +0000 (18:43 +0900)
Change-Id: I27ac7b2f3e47be7e963f090130a575d388bcd43e

src/bin/e_devicemgr_wl.c

index 42adf36..55598f5 100644 (file)
@@ -547,7 +547,7 @@ _e_devicemgr_wl_cb_unbind(struct wl_resource *resource)
 
    EINA_LIST_FREE(mgr_data->user_data_list, device_user_data)
      {
-        DMINF("Destroy dev_res:%u", wl_resource_get_id(device_user_data->dev_res));
+        DMDBG("Destroy dev_res:%u", wl_resource_get_id(device_user_data->dev_res));
         device_user_data->mgr_data = NULL;
         wl_resource_destroy(device_user_data->dev_res);
      }
@@ -569,10 +569,11 @@ _e_devicemgr_wl_cb_bind(struct wl_client *client, void *data, uint32_t version,
 
    mgr_data = E_NEW(E_Devicemgr_Input_Device_Mgr_Data, 1);
    if (!mgr_data)
-   {
-      wl_client_post_no_memory(client);
-      return;
-   }
+     {
+        DMERR("Failed to allocate memory for input device mgr data\n");
+        wl_client_post_no_memory(client);
+        return;
+     }
 
    if (!(res = wl_resource_create(client, &tizen_input_device_manager_interface, version, id)))
      {