Remove libwayland loading debug info.
This commit is contained in:
parent
4ea94848d8
commit
538b39ec9d
1 changed files with 1 additions and 25 deletions
|
|
@ -178,18 +178,9 @@ using Handle = void*;
|
||||||
bool LoadLibrary(Handle &handle, const char *name) {
|
bool LoadLibrary(Handle &handle, const char *name) {
|
||||||
handle = dlopen(name, RTLD_LAZY | RTLD_NODELETE);
|
handle = dlopen(name, RTLD_LAZY | RTLD_NODELETE);
|
||||||
if (handle) {
|
if (handle) {
|
||||||
std::cout << "Loaded library '" << name << "'." << std::endl;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
const auto error = dlerror();
|
g_warning("Could not load library '%s': %s", name, dlerror());
|
||||||
g_warning("Could not load library '%s': %s", name, error);
|
|
||||||
std::cerr
|
|
||||||
<< "Could not load library '"
|
|
||||||
<< name
|
|
||||||
<< "', error: '"
|
|
||||||
<< error
|
|
||||||
<< "'."
|
|
||||||
<< std::endl;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -200,21 +191,6 @@ inline bool LoadSymbol(Handle handle, const char *name, Function &func) {
|
||||||
: nullptr;
|
: nullptr;
|
||||||
if (const auto error = dlerror()) {
|
if (const auto error = dlerror()) {
|
||||||
g_warning("Failed to load function '%s': %s", name, error);
|
g_warning("Failed to load function '%s': %s", name, error);
|
||||||
std::cerr
|
|
||||||
<< "Could not load function '"
|
|
||||||
<< name
|
|
||||||
<< "', error: '"
|
|
||||||
<< error
|
|
||||||
<< "'."
|
|
||||||
<< std::endl;
|
|
||||||
} else if (handle && !func) {
|
|
||||||
std::cerr
|
|
||||||
<< "Could not load function '"
|
|
||||||
<< name
|
|
||||||
<< "', error unknown."
|
|
||||||
<< std::endl;
|
|
||||||
} else if (func) {
|
|
||||||
std::cout << "Loaded function '" << name << "'." << std::endl;
|
|
||||||
}
|
}
|
||||||
return (func != nullptr);
|
return (func != nullptr);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue