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

Commit 4c5a90bc authored by Robert Wu's avatar Robert Wu Committed by Android (Google) Code Review
Browse files

Merge "Fix toString() for empty DeviceIdSet" into main

parents b79b98d6 45113402
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -132,7 +132,7 @@ std::string dumpMixerBehaviors(const MixerBehaviorSet& mixerBehaviors) {


std::string toString(const DeviceIdSet& deviceIds) {
std::string toString(const DeviceIdSet& deviceIds) {
    if (deviceIds.empty()) {
    if (deviceIds.empty()) {
        return "Empty device ids";
        return "AUDIO_PORT_HANDLE_NONE";
    }
    }
    std::stringstream ss;
    std::stringstream ss;
    for (auto it = deviceIds.begin(); it != deviceIds.end(); ++it) {
    for (auto it = deviceIds.begin(); it != deviceIds.end(); ++it) {