mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 18:09:49 +01:00
backend/drm: downgrade test-only commit failure log level
Let's not clutter the logs with error messages when a test-only atomic commit fails.
This commit is contained in:
parent
5088e25eaf
commit
7efc2d05b7
1 changed files with 4 additions and 2 deletions
|
@ -31,8 +31,10 @@ static bool atomic_commit(struct atomic *atom,
|
|||
}
|
||||
|
||||
int ret = drmModeAtomicCommit(drm->fd, atom->req, flags, drm);
|
||||
if (ret) {
|
||||
wlr_drm_conn_log_errno(conn, WLR_ERROR, "Atomic %s failed (%s)",
|
||||
if (ret != 0) {
|
||||
wlr_drm_conn_log_errno(conn,
|
||||
(flags & DRM_MODE_ATOMIC_TEST_ONLY) ? WLR_DEBUG : WLR_ERROR,
|
||||
"Atomic %s failed (%s)",
|
||||
(flags & DRM_MODE_ATOMIC_TEST_ONLY) ? "test" : "commit",
|
||||
(flags & DRM_MODE_ATOMIC_ALLOW_MODESET) ? "modeset" : "pageflip");
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue