[waffle] [PATCH] cgl, nacl: print the dlerror() when dlopen() fails
Emil Velikov
emil.l.velikov at gmail.com
Thu Apr 9 07:24:34 PDT 2015
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/waffle/cgl/cgl_dl.m | 2 +-
src/waffle/nacl/nacl_dl.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/waffle/cgl/cgl_dl.m b/src/waffle/cgl/cgl_dl.m
index 764ecf0..738e395 100644
--- a/src/waffle/cgl/cgl_dl.m
+++ b/src/waffle/cgl/cgl_dl.m
@@ -65,7 +65,7 @@ cgl_dl_open(struct cgl_platform *plat)
if (!plat->dl_gl) {
wcore_errorf(WAFFLE_ERROR_UNKNOWN,
- "dlopen(\"%s\") failed", cgl_dl_gl_path);
+ "dlopen(\"%s\") failed: %s", cgl_dl_gl_path, dlerror());
return false;
}
diff --git a/src/waffle/nacl/nacl_dl.c b/src/waffle/nacl/nacl_dl.c
index a45ddd3..79958da 100644
--- a/src/waffle/nacl/nacl_dl.c
+++ b/src/waffle/nacl/nacl_dl.c
@@ -66,7 +66,7 @@ nacl_dl_open(struct nacl_platform *plat)
if (!plat->dl_gl) {
wcore_errorf(WAFFLE_ERROR_UNKNOWN,
- "dlopen(\"%s\") failed", NACL_GLES2_LIBRARY);
+ "dlopen(\"%s\") failed: %s", NACL_GLES2_LIBRARY, dlerror());
return false;
}
--
2.3.1
More information about the waffle
mailing list