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.
This commit is contained in:
Simon Ser 2024-06-17 09:41:30 +02:00
parent 213bd88b4c
commit 2504ca929f

View File

@ -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);
} }