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

Commit be2043ba authored by Yifan Hong's avatar Yifan Hong Committed by android-build-merger
Browse files

Merge "Fix incorrect bitness for lshal --init-vintf" into oc-dr1-dev am: 5cf813ee

am: d5ba16a0

Change-Id: Icee4e0f8fb3de02bca80dbf8748fc29deb2b5665
parents c6ba29cb d5ba16a0
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -245,6 +245,7 @@ void ListCommand::printLine(
}
}


void ListCommand::dumpVintf() const {
void ListCommand::dumpVintf() const {
    using vintf::operator|=;
    mOut << "<!-- " << std::endl
    mOut << "<!-- " << std::endl
         << "    This is a skeleton device manifest. Notes: " << std::endl
         << "    This is a skeleton device manifest. Notes: " << std::endl
         << "    1. android.hidl.*, android.frameworks.*, android.system.* are not included." << std::endl
         << "    1. android.hidl.*, android.frameworks.*, android.system.* are not included." << std::endl
@@ -316,7 +317,8 @@ void ListCommand::dumpVintf() const {
            for (vintf::ManifestHal *hal : manifest.getHals(fqName.package())) {
            for (vintf::ManifestHal *hal : manifest.getHals(fqName.package())) {
                if (hal->transport() != transport) {
                if (hal->transport() != transport) {
                    if (transport != vintf::Transport::PASSTHROUGH) {
                    if (transport != vintf::Transport::PASSTHROUGH) {
                        mErr << "Fatal: should not reach here. Generated result may be wrong."
                        mErr << "Fatal: should not reach here. Generated result may be wrong for '"
                             << hal->name << "'."
                             << std::endl;
                             << std::endl;
                    }
                    }
                    done = true;
                    done = true;
@@ -327,6 +329,7 @@ void ListCommand::dumpVintf() const {
                        hal->interfaces[interfaceName].name = interfaceName;
                        hal->interfaces[interfaceName].name = interfaceName;
                        hal->interfaces[interfaceName].instances.insert(instanceName);
                        hal->interfaces[interfaceName].instances.insert(instanceName);
                    }
                    }
                    hal->transportArch.arch |= arch;
                    done = true;
                    done = true;
                    break;
                    break;
                }
                }