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

Commit 8c3d2e89 authored by Sanna Catherine de Treville Wager's avatar Sanna Catherine de Treville Wager
Browse files

Fixed indent in NBLog.h

Test: dumpsys media.log

Change-Id: Ic6cf4adc2da4759b165c85d15bd4fd9d3c6780a0
parent 23f2b722
Loading
Loading
Loading
Loading
+456 −452
Original line number Diff line number Diff line
@@ -52,13 +52,14 @@ enum Event : uint8_t {
        EVENT_INTEGER,              // integer value entry
        EVENT_FLOAT,                // floating point value entry
        EVENT_PID,                  // process ID and process name
    EVENT_AUTHOR,               // author index (present in merged logs) tracks entry's original log
    EVENT_START_FMT,            // logFormat start event: entry includes format string, following
                                // entries contain format arguments
        EVENT_AUTHOR,               // author index (present in merged logs) tracks entry's
                                    // original log
        EVENT_START_FMT,            // logFormat start event: entry includes format string,
                                    // following entries contain format arguments
        EVENT_HASH,                 // unique HASH of log origin, originates from hash of file name
                                    // and line number
        EVENT_HISTOGRAM_ENTRY_TS,   // single datum for timestamp histogram
    EVENT_AUDIO_STATE,          // audio on/off event: logged upon FastMixer::onStateChange() call
        EVENT_AUDIO_STATE,          // audio on/off event: logged on FastMixer::onStateChange call
        EVENT_END_FMT,              // end of logFormat argument list

        EVENT_UPPER_BOUND,          // to check for invalid events
@@ -220,7 +221,8 @@ struct Entry {
            : mEvent(event), mLength(length), mData(data) { }
        /*virtual*/ ~Entry() { }

    // used during writing to format Entry information as follows: [type][length][data ... ][length]
        // used during writing to format Entry information as follows:
        // [type][length][data ... ][length]
        int     copyEntryDataAt(size_t offset) const;

    private:
@@ -362,11 +364,12 @@ private:
        void    log(const Entry *entry, bool trusted = false);

        Shared* const   mShared;    // raw pointer to shared memory
    sp<IMemory>     mIMemory;   // ref-counted version, initialized in constructor and then const
    audio_utils_fifo * const mFifo;                 // FIFO itself,
                                                    // non-NULL unless constructor fails
    audio_utils_fifo_writer * const mFifoWriter;    // used to write to FIFO,
                                                    // non-NULL unless dummy constructor used
        sp<IMemory>     mIMemory;   // ref-counted version, initialized in constructor
                                    // and then const
        audio_utils_fifo * const mFifo;                 // FIFO itself, non-NULL
                                                        // unless constructor fails
        audio_utils_fifo_writer * const mFifoWriter;    // used to write to FIFO, non-NULL
                                                        // unless dummy constructor used
        bool            mEnabled;   // whether to actually log

        // cached pid and process name to use in %p format specifier
@@ -471,7 +474,8 @@ private:
        // TODO: it might be clearer, instead of a direct map from source location to vector of
        // timestamps, if we instead first mapped from source location to an object that
        // represented that location. And one_of its fields would be a vector of timestamps.
    // That would allow us to record other information about the source location beyond timestamps.
        // That would allow us to record other information about the source location beyond
        // timestamps.
        void    dumpLine(const String8& timestamp, String8& body);

        EntryIterator   handleFormat(const FormatEntry &fmtEntry,