diff options
author | Simon Ser <contact@emersion.fr> | 2020-12-24 17:55:45 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-12-24 17:55:45 +0100 |
commit | 17dd4c9e9add031bf7f23af681dfff399334752f (patch) | |
tree | 893dd06a6fd8d8c5e24d61f9afce43e0c4e793d2 /backend | |
parent | a7a230ebef54be442960dff6f8908079552e6d78 (diff) |
backend/drm: use connector log helpers in atomic backend
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/atomic.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/backend/drm/atomic.c b/backend/drm/atomic.c index 5b4f8f79..acce9e4d 100644 --- a/backend/drm/atomic.c +++ b/backend/drm/atomic.c @@ -32,8 +32,7 @@ static bool atomic_commit(struct atomic *atom, int ret = drmModeAtomicCommit(drm->fd, atom->req, flags, drm); if (ret) { - wlr_log_errno(WLR_ERROR, "%s: Atomic %s failed (%s)", - conn->name, + wlr_drm_conn_log_errno(conn, WLR_ERROR, "Atomic %s failed (%s)", (flags & DRM_MODE_ATOMIC_TEST_ONLY) ? "test" : "commit", (flags & DRM_MODE_ATOMIC_ALLOW_MODESET) ? "modeset" : "pageflip"); return false; @@ -249,8 +248,8 @@ static bool atomic_crtc_commit(struct wlr_drm_backend *drm, output->adaptive_sync_status = vrr_enabled ? WLR_OUTPUT_ADAPTIVE_SYNC_ENABLED : WLR_OUTPUT_ADAPTIVE_SYNC_DISABLED; - wlr_log(WLR_DEBUG, "VRR %s on connector '%s'", - vrr_enabled ? "enabled" : "disabled", output->name); + wlr_drm_conn_log(conn, WLR_DEBUG, "VRR %s", + vrr_enabled ? "enabled" : "disabled"); } } else { rollback_blob(drm, &crtc->mode_id, mode_id); |