[mutter] renderer/native: Include error message in log entries
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] renderer/native: Include error message in log entries
- Date: Fri, 16 Jul 2021 17:06:59 +0000 (UTC)
commit b65555a958648d350f1e6085de861ec7e11e8e5a
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Wed Jul 14 16:47:32 2021 +0200
renderer/native: Include error message in log entries
We had a GError handed to us, where we logged a warning, but didn't log
the message from the error. Do that so it becomes easier to find out
what might have failed.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1931>
src/backends/native/meta-renderer-native.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c
index 4784b88e48..eb6771b802 100644
--- a/src/backends/native/meta-renderer-native.c
+++ b/src/backends/native/meta-renderer-native.c
@@ -1114,8 +1114,9 @@ meta_renderer_native_create_view (MetaRenderer *renderer,
gpu_kms,
&error))
{
- g_warning ("Failed to create secondary GPU data for %s",
- meta_gpu_kms_get_file_path (gpu_kms));
+ g_warning ("Failed to create secondary GPU data for %s: %s",
+ meta_gpu_kms_get_file_path (gpu_kms),
+ error->message);
use_shadowfb = FALSE;
framebuffer = create_fallback_offscreen (renderer_native,
cogl_context,
@@ -1136,8 +1137,9 @@ meta_renderer_native_create_view (MetaRenderer *renderer,
if (!cogl_framebuffer_allocate (COGL_FRAMEBUFFER (onscreen_native), &error))
{
- g_warning ("Failed to allocate onscreen framebuffer for %s",
- meta_gpu_kms_get_file_path (gpu_kms));
+ g_warning ("Failed to allocate onscreen framebuffer for %s: %s",
+ meta_gpu_kms_get_file_path (gpu_kms),
+ error->message);
use_shadowfb = FALSE;
framebuffer = create_fallback_offscreen (renderer_native,
cogl_context,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]