summaryrefslogtreecommitdiff
path: root/libnativebridge
diff options
context:
space:
mode:
authorMartin Stjernholm <mast@google.com>2021-04-17 17:09:02 +0100
committerTreehugger Robot <treehugger-gerrit@google.com>2021-04-19 15:35:34 +0000
commitae3aa6ca3e1bb29845da8844ab72ae2dc76d7793 (patch)
tree86b90a0cca7280e950547c83fd24f4df0a71b28d /libnativebridge
parent108d4d6df2a3d74d84acbbd97ca044fe26e07de8 (diff)
Improve logging when we fail to load the native bridge implementation.
Test: boot Bug: 130340935 Change-Id: I5e3b3cc92894e08408c79566a48458876d9bef53
Diffstat (limited to 'libnativebridge')
-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