libvndksupport: Change log level and message.

If no 'sphal' namespace exist, the sphal library may be found in
current namespace.
Change the log level and message to note this.

Bug: 64162324
Test: Check log message for vndksupport tag.
Change-Id: I5ed6ba1e48f99e7d11d80a465177ac9f3a7fbd97
This commit is contained in:
Justin Yun 2017-07-31 15:18:32 +09:00
parent 216ed8f61a
commit 9560088743

View file

@ -32,14 +32,13 @@ void* android_load_sphal_library(const char* name, int flag) {
void* handle = android_dlopen_ext(name, flag, &dlextinfo);
if (!handle) {
ALOGE(
"Could not load %s from sphal namespace: %s. ",
"Could not load %s from sphal namespace: %s.",
name, dlerror());
}
return handle;
} else {
ALOGI(
"sphal namespace is not configured for this process. "
"Loading %s from the current namespace instead.",
ALOGD(
"Loading %s from current namespace instead of sphal namespace.",
name);
return dlopen(name, flag);
}