[waffle] [PATCH 07/10] cgl: print the libname on error at cgl_dl_close()

Emil Velikov emil.l.velikov at gmail.com
Fri May 30 19:22:05 PDT 2014


The compiler should have pointed out that there is a
modifier but the parameter is missing. This should
resolve the issue.

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/waffle/cgl/cgl_dl.m | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/waffle/cgl/cgl_dl.m b/src/waffle/cgl/cgl_dl.m
index 8050efe..2d13067 100644
--- a/src/waffle/cgl/cgl_dl.m
+++ b/src/waffle/cgl/cgl_dl.m
@@ -147,11 +147,12 @@ cgl_dl_close(struct wcore_platform *wc_plat)
     if (error_msg) {
         wcore_errorf(WAFFLE_ERROR_UNKNOWN,
                      "dlclose(libname=\"%s\") failed: %s",
-                     error_msg);
+                     cgl_dl_gl_path, error_msg);
     }
     else {
         wcore_errorf(WAFFLE_ERROR_UNKNOWN,
-                     "dlclose(libname=\"%s\") failed");
+                     "dlclose(libname=\"%s\") failed",
+                     cgl_dl_gl_path);
     }
 
     return false;
-- 
1.9.3



More information about the waffle mailing list