aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-01-07 16:53:20 +0100
committerSimon Ser <contact@emersion.fr>2021-01-07 16:53:20 +0100
commit5773794baff0f1cf843f5585322834d050dd231b (patch)
treeed841bf567e6f3521915d50726b3e696d426877b /backend
parent1458f7d9744e96a6f99f5d024744908ded12e77d (diff)
backend/drm: don't log errno on plane_get_next_fb failure
errno isn't guaranteed to be set after a plane_get_next_fb failure, so we were printing garbage.
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/legacy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/backend/drm/legacy.c b/backend/drm/legacy.c
index 72549730..fa909fac 100644
--- a/backend/drm/legacy.c
+++ b/backend/drm/legacy.c
@@ -77,8 +77,7 @@ static bool legacy_crtc_commit(struct wlr_drm_backend *drm,
if (cursor != NULL && drm_connector_is_cursor_visible(conn)) {
struct wlr_drm_fb *cursor_fb = plane_get_next_fb(cursor);
if (!cursor_fb->bo) {
- wlr_drm_conn_log_errno(conn, WLR_DEBUG,
- "Failed to acquire cursor FB");
+ wlr_drm_conn_log(conn, WLR_DEBUG, "Failed to acquire cursor FB");
return false;
}