From 9560088743679416776e30f00d2278de534eaae8 Mon Sep 17 00:00:00 2001 From: Justin Yun Date: Mon, 31 Jul 2017 15:18:32 +0900 Subject: [PATCH] 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 --- libvndksupport/linker.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libvndksupport/linker.c b/libvndksupport/linker.c index 696e97817..703b593fa 100644 --- a/libvndksupport/linker.c +++ b/libvndksupport/linker.c @@ -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); }