From 17dd4c9e9add031bf7f23af681dfff399334752f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 24 Dec 2020 17:55:45 +0100 Subject: backend/drm: use connector log helpers in atomic backend --- backend/drm/atomic.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'backend') 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); -- cgit v1.2.3