From f31ad10b77a86f7c7d3481eb083c5699594983f5 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 26 Apr 2012 10:31:36 +0300 Subject: [PATCH] compositor: report .so path when load_module() fails I want to know which module is failing to load with unresolved symbols. Signed-off-by: Pekka Paalanen --- src/compositor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index 768477de..6ce10a4b 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -2608,14 +2608,15 @@ load_module(const char *name, const char *entrypoint, void **handle) module = dlopen(path, RTLD_LAZY); if (!module) { fprintf(stderr, - "failed to load module: %s\n", dlerror()); + "failed to load module '%s': %s\n", path, dlerror()); return NULL; } init = dlsym(module, entrypoint); if (!init) { fprintf(stderr, - "failed to lookup init function: %s\n", dlerror()); + "failed to lookup init function in '%s': %s\n", + path, dlerror()); return NULL; }