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

Commit a96898c4 authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "AudioFlinger: Use property for local log lines"

parents da913494 f28bcf5c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@
#include <limits.h>

#include <cutils/compiler.h>
#include <cutils/properties.h>

#include <media/IAudioFlinger.h>
#include <media/IAudioFlingerClient.h>
+6 −2
Original line number Diff line number Diff line
@@ -994,8 +994,12 @@ private:

                dprintf(fd, "Local Log:\n");
                auto it = mLog.begin();
                if (!dumpAll && mLog.size() > kLogPrint) {
                    it += (mLog.size() - kLogPrint);
                if (!dumpAll) {
                    const size_t lines =
                            (size_t)property_get_int32("audio.locallog.lines", kLogPrint);
                    if (mLog.size() > lines) {
                        it += (mLog.size() - lines);
                    }
                }
                for (; it != mLog.end(); ++it) {
                    const int64_t ns = it->first;