SHA256
1
0
forked from pool/Mesa
Mesa/U_mesa-glx-Reduce-error-log-level.patch
Stefan Dirsch 6a9dd073e1 Accepting request 242936 from home:tiwai:branches:X11:XOrg
- Reduce error log level for annoying dlopen messages (bnc#889391)
  U_mesa-glx-Reduce-error-log-level.patch

OBS-URL: https://build.opensuse.org/request/show/242936
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=387
2014-07-30 07:26:57 +00:00

37 lines
1.2 KiB
Diff

From 0406f59eebb77e537b50f5cac3a20355686d2a4d Mon Sep 17 00:00:00 2001
From: Courtney Goeltzenleuchter <courtney@LunarG.com>
Date: Wed, 26 Feb 2014 14:27:08 -0700
Subject: [PATCH] mesa: glx: Reduce error log level
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The code that parses LIBGL_DRIVERS_PATH was printing an
error for every attempted dlopen. It's not an error to
have to check multiple items in the path, only an error if
no suitable library is found. Reduced the load error to
a warning to match behavior of dynamic linker.
Signed-off-by: Courtney Goeltzenleuchter <courtney@LunarG.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
---
src/glx/dri_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c
index 8bf47054a325..63c8de38c7c3 100644
--- a/src/glx/dri_common.c
+++ b/src/glx/dri_common.c
@@ -140,7 +140,7 @@ driOpenDriver(const char *driverName)
if (handle != NULL)
break;
else
- ErrorMessageF("dlopen %s failed (%s)\n", realDriverName, dlerror());
+ InfoMessageF("dlopen %s failed (%s)\n", realDriverName, dlerror());
}
if (!handle)
--
2.0.1