diff options
author | Mark Salyzyn <salyzyn@google.com> | 2015-05-12 15:21:31 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2015-05-12 15:51:46 -0700 |
commit | 7718778793b106498b931dd708a466cf3a6f6a0f (patch) | |
tree | 6de1d5da6e95c1cce7e55674c0947eb75aafa321 /logd/LogKlog.cpp | |
parent | e1f2004ecc05ce2d5d4313d16c7791594643f2ef (diff) | |
download | system_core-7718778793b106498b931dd708a466cf3a6f6a0f.tar.gz system_core-7718778793b106498b931dd708a466cf3a6f6a0f.tar.bz2 system_core-7718778793b106498b931dd708a466cf3a6f6a0f.zip |
logd: Cleanup
- Android Coding Standard for Constructors
- Side effects NONE
Change-Id: I2cda9dd73f3ac3ab58f394015cb810820093d47b
Diffstat (limited to 'logd/LogKlog.cpp')
-rw-r--r-- | logd/LogKlog.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/logd/LogKlog.cpp b/logd/LogKlog.cpp index 35fe3a5e9..8df0d0a84 100644 --- a/logd/LogKlog.cpp +++ b/logd/LogKlog.cpp @@ -38,16 +38,16 @@ static const char priority_message[] = { KMSG_PRIORITY(LOG_INFO), '\0' }; log_time LogKlog::correction = log_time(CLOCK_REALTIME) - log_time(CLOCK_MONOTONIC); -LogKlog::LogKlog(LogBuffer *buf, LogReader *reader, int fdWrite, int fdRead, bool auditd) - : SocketListener(fdRead, false) - , logbuf(buf) - , reader(reader) - , signature(CLOCK_MONOTONIC) - , fdWrite(fdWrite) - , fdRead(fdRead) - , initialized(false) - , enableLogging(true) - , auditd(auditd) { +LogKlog::LogKlog(LogBuffer *buf, LogReader *reader, int fdWrite, int fdRead, bool auditd) : + SocketListener(fdRead, false), + logbuf(buf), + reader(reader), + signature(CLOCK_MONOTONIC), + fdWrite(fdWrite), + fdRead(fdRead), + initialized(false), + enableLogging(true), + auditd(auditd) { static const char klogd_message[] = "%slogd.klogd: %" PRIu64 "\n"; char buffer[sizeof(priority_message) + sizeof(klogd_message) + 20 - 4]; snprintf(buffer, sizeof(buffer), klogd_message, priority_message, |