Merge "liblog: BM_log_latency improvement"
am: 9d3722be72
Change-Id: I823a97f19fa9aee1c482c517da3541d70d97722d
This commit is contained in:
commit
e79f85ca42
1 changed files with 2 additions and 2 deletions
|
@ -262,6 +262,8 @@ static int __write_to_log_daemon(log_id_t log_id, struct iovec *vec, size_t nr)
|
|||
}
|
||||
|
||||
#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 @@ static int __write_to_log_daemon(log_id_t log_id, struct iovec *vec, size_t nr)
|
|||
return -EPERM;
|
||||
}
|
||||
}
|
||||
|
||||
clock_gettime(android_log_clockid(), &ts);
|
||||
#else
|
||||
/* simulate clock_gettime(CLOCK_REALTIME, &ts); */
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue