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

Commit 0297447f authored by Mikhail Naganov's avatar Mikhail Naganov Committed by Android (Google) Code Review
Browse files

Merge "APM dump: Indent the name of the USB device properly"

parents ebc489d3 b4fa5e7a
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -126,7 +126,14 @@ void DeviceDescriptorBase::dump(std::string *dst, int spaces,
                    "%*sEncapsulation modes: %u, metadata types: %u\n", spaces, "",
                    mEncapsulationModes, mEncapsulationMetadataTypes));

    AudioPort::dump(dst, spaces, nullptr, verbose);
    std::string portStr;
    AudioPort::dump(&portStr, spaces, nullptr, verbose);
    if (!portStr.empty()) {
        if (!mName.empty()) {
            dst->append(base::StringPrintf("%*s", spaces, ""));
        }
        dst->append(portStr);
    }
}

std::string DeviceDescriptorBase::toString(bool includeSensitiveInfo) const