summaryrefslogtreecommitdiff
path: root/libnativebridge/native_bridge.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libnativebridge/native_bridge.cc')
-rw-r--r--libnativebridge/native_bridge.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/libnativebridge/native_bridge.cc b/libnativebridge/native_bridge.cc
index e9b2a91706..7600780f79 100644
--- a/libnativebridge/native_bridge.cc
+++ b/libnativebridge/native_bridge.cc
@@ -235,11 +235,16 @@ bool LoadNativeBridge(const char* nb_library_filename,
} else {
callbacks = nullptr;
dlclose(handle);
- ALOGW("Unsupported native bridge interface.");
+ ALOGW("Unsupported native bridge API in %s (is version %d not compatible with %d)",
+ nb_library_filename, callbacks->version, NAMESPACE_VERSION);
}
} else {
dlclose(handle);
+ ALOGW("Unsupported native bridge API in %s: %s not found",
+ nb_library_filename, kNativeBridgeInterfaceSymbol);
}
+ } else {
+ ALOGW("Failed to load native bridge implementation: %s", dlerror());
}
// Two failure conditions: could not find library (dlopen failed), or could not find native