Blame SOURCES/0002-xwayland-glamor-Change-errors-to-verbose-messages.patch

2936a4
From a515f4f4336efb8a2adf9a3ac141129708297d80 Mon Sep 17 00:00:00 2001
2936a4
From: Olivier Fourdan <ofourdan@redhat.com>
2936a4
Date: Mon, 29 Nov 2021 11:45:35 +0100
2936a4
Subject: [PATCH xserver 2/4] xwayland/glamor: Change errors to verbose
2936a4
 messages
2936a4
MIME-Version: 1.0
2936a4
Content-Type: text/plain; charset=UTF-8
2936a4
Content-Transfer-Encoding: 8bit
2936a4
2936a4
On a normal startup sequence, the Xwayland glamor backend would log
2936a4
an error whenever a required Wayland protocol is missing.
2936a4
2936a4
Those are not really errors though, more informational messages along
2936a4
the glamor backend selection process.
2936a4
2936a4
Demote those errors to verbose messages to reduce the verbosity of
2936a4
Xwayland at startup by default.
2936a4
2936a4
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
2936a4
Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com>
2936a4
(cherry picked from commit 30d0d4a19be61dd7b61f5ced992cb299e6a38068)
2936a4
---
2936a4
 hw/xwayland/xwayland-glamor-eglstream.c | 6 ++++--
2936a4
 hw/xwayland/xwayland-glamor-gbm.c       | 2 +-
2936a4
 hw/xwayland/xwayland-glamor.c           | 6 ++++--
2936a4
 3 files changed, 9 insertions(+), 5 deletions(-)
2936a4
2936a4
diff --git a/hw/xwayland/xwayland-glamor-eglstream.c b/hw/xwayland/xwayland-glamor-eglstream.c
2936a4
index 93d192d58..5a20b452f 100644
2936a4
--- a/hw/xwayland/xwayland-glamor-eglstream.c
2936a4
+++ b/hw/xwayland/xwayland-glamor-eglstream.c
2936a4
@@ -753,12 +753,14 @@ xwl_glamor_eglstream_has_wl_interfaces(struct xwl_screen *xwl_screen)
2936a4
         xwl_eglstream_get(xwl_screen);
2936a4
 
2936a4
     if (xwl_eglstream->display == NULL) {
2936a4
-        ErrorF("glamor: 'wl_eglstream_display' not supported\n");
2936a4
+        LogMessageVerb(X_INFO, 3,
2936a4
+                       "glamor: 'wl_eglstream_display' not supported\n");
2936a4
         return FALSE;
2936a4
     }
2936a4
 
2936a4
     if (xwl_eglstream->controller == NULL) {
2936a4
-        ErrorF("glamor: 'wl_eglstream_controller' not supported\n");
2936a4
+        LogMessageVerb(X_INFO, 3,
2936a4
+                       "glamor: 'wl_eglstream_controller' not supported\n");
2936a4
         return FALSE;
2936a4
     }
2936a4
 
2936a4
diff --git a/hw/xwayland/xwayland-glamor-gbm.c b/hw/xwayland/xwayland-glamor-gbm.c
2936a4
index 466a1b052..e06b6f54b 100644
2936a4
--- a/hw/xwayland/xwayland-glamor-gbm.c
2936a4
+++ b/hw/xwayland/xwayland-glamor-gbm.c
2936a4
@@ -835,7 +835,7 @@ xwl_glamor_gbm_has_wl_interfaces(struct xwl_screen *xwl_screen)
2936a4
     struct xwl_gbm_private *xwl_gbm = xwl_gbm_get(xwl_screen);
2936a4
 
2936a4
     if (xwl_gbm->drm == NULL) {
2936a4
-        ErrorF("glamor: 'wl_drm' not supported\n");
2936a4
+        LogMessageVerb(X_INFO, 3, "glamor: 'wl_drm' not supported\n");
2936a4
         return FALSE;
2936a4
     }
2936a4
 
2936a4
diff --git a/hw/xwayland/xwayland-glamor.c b/hw/xwayland/xwayland-glamor.c
2936a4
index deb398f91..541d5e923 100644
2936a4
--- a/hw/xwayland/xwayland-glamor.c
2936a4
+++ b/hw/xwayland/xwayland-glamor.c
2936a4
@@ -412,7 +412,8 @@ xwl_glamor_select_gbm_backend(struct xwl_screen *xwl_screen)
2936a4
         return TRUE;
2936a4
     }
2936a4
     else
2936a4
-        ErrorF("Missing Wayland requirements for glamor GBM backend\n");
2936a4
+        LogMessageVerb(X_INFO, 3,
2936a4
+                       "Missing Wayland requirements for glamor GBM backend\n");
2936a4
 #endif
2936a4
 
2936a4
     return FALSE;
2936a4
@@ -428,7 +429,8 @@ xwl_glamor_select_eglstream_backend(struct xwl_screen *xwl_screen)
2936a4
         return TRUE;
2936a4
     }
2936a4
     else
2936a4
-        ErrorF("Missing Wayland requirements for glamor EGLStream backend\n");
2936a4
+        LogMessageVerb(X_INFO, 3,
2936a4
+                       "Missing Wayland requirements for glamor EGLStream backend\n");
2936a4
 #endif
2936a4
 
2936a4
     return FALSE;
2936a4
-- 
2936a4
2.33.1
2936a4