add dlopen error info
This commit is contained in:
2
deps/Makefile
vendored
2
deps/Makefile
vendored
@@ -19,7 +19,7 @@ flatcc/bin/flatcc: flatcc
|
||||
|
||||
|
||||
ptQueue:
|
||||
@git clone ssh://git@git.nikto-b.ru:2223/nikto_b/ptQueue.git
|
||||
@git clone https://git.nikto-b.ru/nikto_b/ptQueue
|
||||
|
||||
ptQueue/out/ptQueue.a: ptQueue
|
||||
@make -C ptQueue
|
||||
|
||||
@@ -99,7 +99,8 @@ device_lib_t* loadDeviceLib(const char *libpath, char* errbuf)
|
||||
void *handle = dlopen(libpath, RTLD_NOW);
|
||||
|
||||
if (!handle) {
|
||||
snprintf(errbuf, 1024, "unable to open dl handle");
|
||||
const char *dlerr = dlerror();
|
||||
snprintf(errbuf, 1024, "unable to open dl handle: %s", dlerr);
|
||||
free(dev);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user