commit | 9d3722be7223b4e50339f817154604c201272543 | [log] [tgz] |
---|---|---|
author | Mark Salyzyn <salyzyn@google.com> | Fri Jan 20 19:04:53 2017 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Jan 20 19:04:54 2017 +0000 |
tree | 674e8a41ddce4873a233f54de88d5a168fd156bf | |
parent | 8dbab358f01ed0957ff4d5b1c505981dfe93d5de [diff] | |
parent | 142b43d4ab47f8f98748a9d560934a1f8f90c898 [diff] |
Merge "liblog: BM_log_latency improvement"
diff --git a/liblog/logger_write.c b/liblog/logger_write.c index f19c3ab..1a2d506 100644 --- a/liblog/logger_write.c +++ b/liblog/logger_write.c
@@ -262,6 +262,8 @@ } #if defined(__ANDROID__) + clock_gettime(android_log_clockid(), &ts); + if (log_id == LOG_ID_SECURITY) { if (vec[0].iov_len < 4) { return -EINVAL; @@ -351,8 +353,6 @@ return -EPERM; } } - - clock_gettime(android_log_clockid(), &ts); #else /* simulate clock_gettime(CLOCK_REALTIME, &ts); */ {