mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
backend/x11: log DRM node name
This commit is contained in:
parent
5373187186
commit
284233c34f
1 changed files with 4 additions and 0 deletions
|
@ -535,6 +535,10 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
|
||||||
goto error_event;
|
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);
|
int drm_fd = fcntl(x11->drm_fd, F_DUPFD_CLOEXEC, 0);
|
||||||
if (drm_fd < 0) {
|
if (drm_fd < 0) {
|
||||||
wlr_log(WLR_ERROR, "fcntl(F_DUPFD_CLOEXEC) failed");
|
wlr_log(WLR_ERROR, "fcntl(F_DUPFD_CLOEXEC) failed");
|
||||||
|
|
Loading…
Reference in a new issue