mirror of
https://github.com/ceph/ceph
synced 2025-02-20 01:17:47 +00:00
classhandler: print error when dlopen fails
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
cc5fcb99d5
commit
ed66dd578c
@ -35,7 +35,8 @@ void ClassHandler::_load_class(ClassData &cls)
|
||||
cls.handle = dlopen(fname, RTLD_NOW);
|
||||
|
||||
if (!cls.handle) {
|
||||
dout(0) << "could not open class (dlopen failed)" << dendl;
|
||||
char buf[80];
|
||||
dout(0) << "could not open class (dlopen failed) " << strerror_r(errno, buf, sizeof(buf)) << dendl;
|
||||
goto done;
|
||||
}
|
||||
cls_deps = (cls_deps_t *(*)())dlsym(cls.handle, "class_deps");
|
||||
|
Loading…
Reference in New Issue
Block a user