Add the name of needed_by library to the warning
Bug: http://b/26394120
Change-Id: I8dbf1d0d879e967563ad3158ee3c0e4284dfa533
diff --git a/linker/linker.cpp b/linker/linker.cpp
index 791f94d..228216f 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -1767,8 +1767,9 @@
if (is_greylisted(name, needed_by)) {
// print warning only if needed by non-system library
if (needed_by == nullptr || !is_system_library(needed_by->get_realpath())) {
- DL_WARN("library \"%s\" (\"%s\") is not accessible for the namespace \"%s\" - the access is temporarily granted as a workaround for http://b/26394120",
- name, realpath.c_str(), ns->get_name());
+ DL_WARN("library \"%s\" (\"%s\") needed by \"%s\" is not accessible for the namespace \"%s\""
+ " - the access is temporarily granted as a workaround for http://b/26394120",
+ name, realpath.c_str(), needed_by->get_realpath(), ns->get_name());
}
} else {
// do not load libraries if they are not accessible for the specified namespace.