aboutsummaryrefslogtreecommitdiff
path: root/backend/x11/backend.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-01-17 10:18:49 +0100
committerSimon Ser <contact@emersion.fr>2021-01-17 10:28:12 +0100
commit284233c34fe291d0022b336f100c864f3905cf4f (patch)
treeb5794b0a39ff2b3bbd8e1648ebb0be3c21514575 /backend/x11/backend.c
parent5373187186e287cfefea6d8b371a127366e0aea8 (diff)
backend/x11: log DRM node name
Diffstat (limited to 'backend/x11/backend.c')
-rw-r--r--backend/x11/backend.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c
index caff3d08..eb2649c0 100644
--- a/backend/x11/backend.c
+++ b/backend/x11/backend.c
@@ -535,6 +535,10 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
goto error_event;
}
+ char *drm_name = drmGetDeviceNameFromFd2(x11->drm_fd);
+ wlr_log(WLR_DEBUG, "Using DRM node %s", drm_name);
+ free(drm_name);
+
int drm_fd = fcntl(x11->drm_fd, F_DUPFD_CLOEXEC, 0);
if (drm_fd < 0) {
wlr_log(WLR_ERROR, "fcntl(F_DUPFD_CLOEXEC) failed");