compositor: log module loading

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
dev
Pekka Paalanen 13 years ago committed by Kristian Høgsberg
parent 7f4d1a3534
commit 1b3c1ea880
  1. 6
      src/compositor.c

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

Loading…
Cancel
Save