Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b72f19ee authored by Yifan Hong's avatar Yifan Hong
Browse files

lshal: --types works with --neat

Test: lshal_test
Change-Id: Ia2e6a2258b455605929a19da0c3213eae5f9d14f
parent db730530
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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;
    }