backend/session: log when loading WLR_DRM_DEVICES

It may not be obvious in the logs when the user specifies an
explicit fixed list of KMS devices to open.
master
Simon Ser 5 months ago
parent 213bd88b4c
commit 2504ca929f

@ -448,6 +448,7 @@ ssize_t wlr_session_find_gpus(struct wlr_session *session,
size_t ret_len, struct wlr_device **ret) { size_t ret_len, struct wlr_device **ret) {
const char *explicit = getenv("WLR_DRM_DEVICES"); const char *explicit = getenv("WLR_DRM_DEVICES");
if (explicit) { if (explicit) {
wlr_log(WLR_INFO, "Opening fixed list of KMS devices from WLR_DRM_DEVICES: %s", explicit);
return explicit_find_gpus(session, ret_len, ret, explicit); return explicit_find_gpus(session, ret_len, ret, explicit);
} }

Loading…
Cancel
Save