mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-21 22:52:20 +00:00
backend/session: use "KMS" instead of "DRM" in log messages
Some DRM devices are not KMS-capable. DRM card nodes (also known as DRM primary nodes) are created for render-only devices as well. Let's just use "KMS" everywhere instead of "DRM" and "DRM card".
This commit is contained in:
parent
2504ca929f
commit
cedcd3252a
@ -404,7 +404,7 @@ static ssize_t explicit_find_gpus(struct wlr_session *session,
|
|||||||
|
|
||||||
ret[i] = session_open_if_kms(session, ptr);
|
ret[i] = session_open_if_kms(session, ptr);
|
||||||
if (!ret[i]) {
|
if (!ret[i]) {
|
||||||
wlr_log(WLR_ERROR, "Unable to open %s as DRM device", ptr);
|
wlr_log(WLR_ERROR, "Unable to open %s as KMS device", ptr);
|
||||||
} else {
|
} else {
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
@ -459,7 +459,7 @@ ssize_t wlr_session_find_gpus(struct wlr_session *session,
|
|||||||
|
|
||||||
if (udev_enumerate_get_list_entry(en) == NULL) {
|
if (udev_enumerate_get_list_entry(en) == NULL) {
|
||||||
udev_enumerate_unref(en);
|
udev_enumerate_unref(en);
|
||||||
wlr_log(WLR_INFO, "Waiting for a DRM card device");
|
wlr_log(WLR_INFO, "Waiting for a KMS device");
|
||||||
|
|
||||||
struct find_gpus_add_handler handler = {0};
|
struct find_gpus_add_handler handler = {0};
|
||||||
handler.listener.notify = find_gpus_handle_add;
|
handler.listener.notify = find_gpus_handle_add;
|
||||||
@ -470,7 +470,7 @@ ssize_t wlr_session_find_gpus(struct wlr_session *session,
|
|||||||
while (!handler.added) {
|
while (!handler.added) {
|
||||||
int ret = wl_event_loop_dispatch(session->event_loop, (int)timeout);
|
int ret = wl_event_loop_dispatch(session->event_loop, (int)timeout);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
wlr_log_errno(WLR_ERROR, "Failed to wait for DRM card device: "
|
wlr_log_errno(WLR_ERROR, "Failed to wait for KMS device: "
|
||||||
"wl_event_loop_dispatch failed");
|
"wl_event_loop_dispatch failed");
|
||||||
udev_enumerate_unref(en);
|
udev_enumerate_unref(en);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user