From 1071c1bf64903ca545c0a216c07708c33f4a832d Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Fri, 3 Mar 2017 10:57:43 -0800 Subject: lshal: update descriptions in output. Test: pass Change-Id: I912e2153e531a35ecdf1e76fd6bafa68880b8721 --- cmds/lshal/Lshal.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmds/lshal/Lshal.cpp b/cmds/lshal/Lshal.cpp index 7646febd51..9e60461fe1 100644 --- a/cmds/lshal/Lshal.cpp +++ b/cmds/lshal/Lshal.cpp @@ -294,7 +294,7 @@ void Lshal::dumpVintf() const { static const std::string &getArchString(Architecture arch) { static const std::string sStr64 = "64"; static const std::string sStr32 = "32"; - static const std::string sStrBoth = "64&32"; + static const std::string sStrBoth = "32+64"; static const std::string sStrUnknown = ""; switch (arch) { case ARCH64: @@ -325,12 +325,12 @@ void Lshal::dumpTable() { mServicesTable.description = "All binderized services (registered services through hwservicemanager)"; mPassthroughRefTable.description = - "All interfaces that getService() has ever return a passthrough interface;\n" + "All interfaces that getService() has ever return as a passthrough interface;\n" "PIDs / processes shown below might be inaccurate because the process\n" - "might have relinquish the interface or might have died.\n" + "might have relinquished the interface or might have died.\n" "The Server / Server CMD column can be ignored.\n" - "The Clients / Clients CMD column shows all process that have ever dlopen the library\n" - "and successfully fetch the passthrough implementation."; + "The Clients / Clients CMD column shows all process that have ever dlopen'ed \n" + "the library and successfully fetched the passthrough implementation."; mImplementationsTable.description = "All available passthrough implementations (all -impl.so files)"; forEachTable([this] (const Table &table) { @@ -393,7 +393,7 @@ Status Lshal::fetchAllLibraries(const sp &manager) { for (const auto &info : infos) { std::string interfaceName = std::string{info.interfaceName.c_str()} + "/" + std::string{info.instanceName.c_str()}; - entries.emplace(std::string{interfaceName}, TableEntry{ + entries.emplace(interfaceName, TableEntry{ .interfaceName = interfaceName, .transport = "passthrough", .serverPid = NO_PID, -- cgit v1.2.3