From b65555a958648d350f1e6085de861ec7e11e8e5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 14 Jul 2021 16:47:32 +0200 Subject: [PATCH] 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: --- 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 4784b88e4..eb6771b80 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,