summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Yifan Hong <elsk@google.com> 2018-06-27 16:58:56 -0700
committer Yifan Hong <elsk@google.com> 2018-06-28 13:23:15 -0700
commitb72f19ee9f61bdee774aae0ce8c3a0e511d2ae30 (patch)
tree18a299f0773e0be8e1bab1cbbaf055bdef5675d1
parentdb730530656f717cdb925c058461a4485db4b32b (diff)
lshal: --types works with --neat
Test: lshal_test Change-Id: Ia2e6a2258b455605929a19da0c3213eae5f9d14f
-rw-r--r--cmds/lshal/ListCommand.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmds/lshal/ListCommand.cpp b/cmds/lshal/ListCommand.cpp
index c68d1972de..d497e5ccda 100644
--- a/cmds/lshal/ListCommand.cpp
+++ b/cmds/lshal/ListCommand.cpp
@@ -502,8 +502,11 @@ static vintf::Arch fromBaseArchitecture(::android::hidl::base::V1_0::DebugInfo::
void ListCommand::dumpTable(const NullableOStream<std::ostream>& out) const {
if (mNeat) {
- MergedTable({&mServicesTable, &mPassthroughRefTable, &mImplementationsTable})
- .createTextTable().dump(out.buf());
+ std::vector<const Table*> tables;
+ forEachTable([&tables](const Table &table) {
+ tables.push_back(&table);
+ });
+ MergedTable(std::move(tables)).createTextTable().dump(out.buf());
return;
}