aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkOSLibrary_posix.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-08-10 12:26:00 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-10 12:26:00 -0700
commit80e38ac117371129df2eb27fe674c7ca84256971 (patch)
tree5126aeb5f8a8fe73a366dd782c942f2ace8b290d /src/ports/SkOSLibrary_posix.cpp
parent1d65fe293241cfeb405b1724371d6c532bcee55f (diff)
Add more error printing to know why command buffer lib failed to load.
Diffstat (limited to 'src/ports/SkOSLibrary_posix.cpp')
-rw-r--r--src/ports/SkOSLibrary_posix.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ports/SkOSLibrary_posix.cpp b/src/ports/SkOSLibrary_posix.cpp
index 901ee22f3c..6372a8122a 100644
--- a/src/ports/SkOSLibrary_posix.cpp
+++ b/src/ports/SkOSLibrary_posix.cpp
@@ -12,7 +12,11 @@
#include <dlfcn.h>
void* DynamicLoadLibrary(const char* libraryName) {
- return dlopen(libraryName, RTLD_LAZY);
+ void* result = dlopen(libraryName, RTLD_LAZY);
+ if (!result) {
+ SkDebugf("Error loading %s {\n %s\n}\n", libraryName, dlerror());
+ }
+ return result;
}
void* GetProcedureAddress(void* library, const char* functionName) {