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

Commit 364051ca authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "ExtendedTimestamp toString fixup" into main

parents 1f8ececb 5c689432
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -154,10 +154,13 @@ struct alignas(8) /* bug 29096183, bug 29108507 */ ExtendedTimestamp {
    std::string toString() const {
        std::stringstream ss;

        ss << "BOOTTIME offset " << mTimebaseOffset[TIMEBASE_BOOTTIME] << "\n";
        ss << "BOOTTIME offset " << mTimebaseOffset[TIMEBASE_BOOTTIME] << ": ExtendedTimestamp: ";
        for (int i = 0; i < LOCATION_MAX; ++i) {
            ss << "ExtendedTimestamp[" << i << "]  position: "
                    << mPosition[i] << "  time: "  << mTimeNs[i] << "\n";
            ss << "([" << i << "]  position: "
                    << mPosition[i] << "  time: "  << mTimeNs[i] << ")";
            if (i != LOCATION_MAX - 1) {
                ss << ", ";
            }
        }
        return ss.str();
    }