diff options
author | Mark Salyzyn <salyzyn@google.com> | 2015-05-12 15:21:31 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2015-05-13 09:22:56 -0700 |
commit | 66091f11f427587bf810d89b0f64be556e1cd168 (patch) | |
tree | 79eb64041a537d93f82fd2ccd01005a6108d55e5 /logd/LogBufferElement.cpp | |
parent | 79c3815ca191033bd97e7d4458970b606f661a18 (diff) | |
download | system_core-66091f11f427587bf810d89b0f64be556e1cd168.zip system_core-66091f11f427587bf810d89b0f64be556e1cd168.tar.gz system_core-66091f11f427587bf810d89b0f64be556e1cd168.tar.bz2 |
logd: Cleanup
(cherry pick from commit 7718778793b106498b931dd708a466cf3a6f6a0f)
- Android Coding Standard for Constructors
- Side effects NONE
Change-Id: I2cda9dd73f3ac3ab58f394015cb810820093d47b
Diffstat (limited to 'logd/LogBufferElement.cpp')
-rw-r--r-- | logd/LogBufferElement.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/logd/LogBufferElement.cpp b/logd/LogBufferElement.cpp index 164faa9..f98d5cd 100644 --- a/logd/LogBufferElement.cpp +++ b/logd/LogBufferElement.cpp @@ -34,14 +34,14 @@ atomic_int_fast64_t LogBufferElement::sequence; LogBufferElement::LogBufferElement(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, - const char *msg, unsigned short len) - : mLogId(log_id) - , mUid(uid) - , mPid(pid) - , mTid(tid) - , mMsgLen(len) - , mSequence(sequence.fetch_add(1, memory_order_relaxed)) - , mRealTime(realtime) { + const char *msg, unsigned short len) : + mLogId(log_id), + mUid(uid), + mPid(pid), + mTid(tid), + mMsgLen(len), + mSequence(sequence.fetch_add(1, memory_order_relaxed)), + mRealTime(realtime) { mMsg = new char[len]; memcpy(mMsg, msg, len); } |