summaryrefslogtreecommitdiff
path: root/src/gallium/targets
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-12-10 10:28:57 +0800
committerChia-I Wu <olv@lunarg.com>2010-12-10 11:00:31 +0800
commit6efd963a2372a4e51e3550a97858105013a096e7 (patch)
tree5e7b2c7f8d000f6d02beda50bd4cc4ab0deca7a4 /src/gallium/targets
parentbecc4bb90c46f754018ac596460e6c6a650d399c (diff)
target/egl: Fix misleading debug message.
When the name of the module is NULL, the process itself is dlopen()ed. Do not print libEGL debug: searching for st module (null)
Diffstat (limited to 'src/gallium/targets')
-rw-r--r--src/gallium/targets/egl/egl.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gallium/targets/egl/egl.c b/src/gallium/targets/egl/egl.c
index 786d5d1105..19404c8ef6 100644
--- a/src/gallium/targets/egl/egl.c
+++ b/src/gallium/targets/egl/egl.c
@@ -100,9 +100,14 @@ load_st_module(struct st_module *stmod,
{
struct st_api *(*create_api)(void);
- _eglLog(_EGL_DEBUG, "searching for st module %s", name);
+ if (name) {
+ _eglLog(_EGL_DEBUG, "searching for st module %s", name);
+ stmod->name = loader_strdup(name);
+ }
+ else {
+ stmod->name = NULL;
+ }
- stmod->name = loader_strdup(name);
if (stmod->name)
_eglSearchPathForEach(dlopen_st_module_cb, (void *) stmod);
else