[waffle] [PATCH] cgl, nacl: print the dlerror() when dlopen() fails
Tapani Pälli
tapani.palli at intel.com
Fri Apr 10 01:07:31 PDT 2015
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
On 04/09/2015 05:24 PM, Emil Velikov wrote:
> 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;
> }
>
>
More information about the waffle
mailing list