aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2016-06-17 13:46:36 -0700
committerChristopher Ferris <cferris@google.com>2016-06-17 13:46:36 -0700
commit9a84d90c753dd934c3086322f6ba6b7a1f580c8c (patch)
treeaa9d96ce0ae338618dc840559699bd3e95629f5a
parent3293308147c0450e2a977dcf1966cd980eaaf37f (diff)
downloadbionic-9a84d90c753dd934c3086322f6ba6b7a1f580c8c.tar.gz
Make missing public soname error message clear.
If a public library is missing, make it clear that there is no library with that soname that is missing. This can help diagnose problems if a library exists, but the library doesn't have the right soname. Bug: 29400363 Change-Id: I6e782c76ef892fb18385d720b531e5177598a2b0
-rw-r--r--linker/linker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linker/linker.cpp b/linker/linker.cpp
index 39aa2caec..48638a888 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -2504,8 +2504,8 @@ bool init_namespaces(const char* public_ns_sonames, const char* anon_ns_library_
find_loaded_library_by_soname(&g_default_namespace, soname.c_str(), &candidate);
if (candidate == nullptr) {
- DL_ERR("error initializing public namespace: \"%s\" was not found"
- " in the default namespace", soname.c_str());
+ DL_ERR("error initializing public namespace: a library with soname \"%s\""
+ " was not found in the default namespace", soname.c_str());
return false;
}