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