forked from enlightenment/efl
ecore-drm fails with appropriate error message on failing to open input
This commit is contained in:
parent
aad13a286f
commit
34acd14563
|
@ -51,6 +51,11 @@ _device_add(Ecore_Drm_Input *input, struct udev_device *device)
|
||||||
node = udev_device_get_devnode(device);
|
node = udev_device_get_devnode(device);
|
||||||
strcpy(n, node);
|
strcpy(n, node);
|
||||||
fd = open(n, O_RDWR | O_NONBLOCK);
|
fd = open(n, O_RDWR | O_NONBLOCK);
|
||||||
|
if (fd == -1)
|
||||||
|
{
|
||||||
|
ERR("FAILED TO OPEN %s: %m", n);
|
||||||
|
return EINA_FALSE;
|
||||||
|
}
|
||||||
/* _ecore_drm_message_send(ECORE_DRM_OP_DEVICE_OPEN, -1, n, strlen(n)); */
|
/* _ecore_drm_message_send(ECORE_DRM_OP_DEVICE_OPEN, -1, n, strlen(n)); */
|
||||||
/* _ecore_drm_message_receive(ECORE_DRM_OP_DEVICE_OPEN, &fd, NULL, 0); */
|
/* _ecore_drm_message_receive(ECORE_DRM_OP_DEVICE_OPEN, &fd, NULL, 0); */
|
||||||
/* DBG("Opened Restricted Input: %s %d", node, fd); */
|
/* DBG("Opened Restricted Input: %s %d", node, fd); */
|
||||||
|
|
Loading…
Reference in New Issue