diff options
-rw-r--r-- | cmds/lshal/ListCommand.cpp | 7 |
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; } |