summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-09-25 11:46:46 -0400
committerChris Michael <cp.michael@samsung.com>2014-09-25 11:46:46 -0400
commit44e2cde623472fd0539e772f8fdc6fbb58f2b5a8 (patch)
treeaecfbf0ac7f9cd6b9aeb9eda5bd5535beeb81999
parentb81cafcd7b026dbf56b5898a7578f15e1bab885c (diff)
ecore-drm: Add some more debug information if a device fails to open
Summary: This is mainly for debugging, but lets print out a bit more information if a device fails to open. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/ecore_drm/ecore_drm_inputs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_inputs.c b/src/lib/ecore_drm/ecore_drm_inputs.c
index bf076dfc10..544c3b262c 100644
--- a/src/lib/ecore_drm/ecore_drm_inputs.c
+++ b/src/lib/ecore_drm/ecore_drm_inputs.c
@@ -79,14 +79,15 @@ _cb_device_opened(void *data, const Eldbus_Message *msg, Eldbus_Pending *pending
79 const char *errname, *errmsg; 79 const char *errname, *errmsg;
80 int fd = -1; 80 int fd = -1;
81 81
82 if (!(d = data)) return;
83
82 if (eldbus_message_error_get(msg, &errname, &errmsg)) 84 if (eldbus_message_error_get(msg, &errname, &errmsg))
83 { 85 {
84 ERR("Eldbus Message Error: %s %s", errname, errmsg); 86 ERR("Eldbus Message Error: %s %s", errname, errmsg);
87 ERR("\tFailed to open device: %s", d->node);
85 return; 88 return;
86 } 89 }
87 90
88 if (!(d = data)) return;
89
90 /* DBG("Input Device Opened: %s", d->node); */ 91 /* DBG("Input Device Opened: %s", d->node); */
91 92
92 /* DBUS_TYPE_UNIX_FD == 'h' */ 93 /* DBUS_TYPE_UNIX_FD == 'h' */
@@ -171,6 +172,8 @@ _device_add(Ecore_Drm_Input *input, const char *device)
171 if (!(data->node = eeze_udev_syspath_get_devpath(device))) 172 if (!(data->node = eeze_udev_syspath_get_devpath(device)))
172 goto dev_err; 173 goto dev_err;
173 174
175 DBG("\tDevice Path: %s", data->node);
176
174 _ecore_drm_dbus_device_open(data->node, _cb_device_opened, data); 177 _ecore_drm_dbus_device_open(data->node, _cb_device_opened, data);
175 178
176 return EINA_TRUE; 179 return EINA_TRUE;