compositor: log module loading
authorPekka Paalanen <ppaalanen@gmail.com>
Mon, 11 Jun 2012 11:06:04 +0000 (14:06 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 11 Jun 2012 13:48:02 +0000 (09:48 -0400)
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
src/compositor.c

index 313754b..6468e43 100644 (file)
@@ -3113,16 +3113,16 @@ load_module(const char *name, const char *entrypoint, void **handle)
        else
                snprintf(path, sizeof path, "%s", name);
 
+       weston_log("Loading module '%s'\n", path);
        module = dlopen(path, RTLD_LAZY);
        if (!module) {
-               weston_log("failed to load module '%s': %s\n", path, dlerror());
+               weston_log("Failed to load module: %s\n", dlerror());
                return NULL;
        }
 
        init = dlsym(module, entrypoint);
        if (!init) {
-               weston_log("failed to lookup init function in '%s': %s\n",
-                       path, dlerror());
+               weston_log("Failed to lookup init function: %s\n", dlerror());
                return NULL;
        }