diff options
| author | Mark Salyzyn <salyzyn@google.com> | 2014-03-06 22:41:23 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-06 22:41:23 +0000 |
| commit | d01c257f0f19a30178a6d5ec9d6d00d6b702fed3 (patch) | |
| tree | e835399bbf02556226aea7c28bcda396171fcd23 /liblog/logd_write.c | |
| parent | e4980725dc14c913978a3bdb30dd1844781bbd27 (diff) | |
| parent | 8f63232712e318da88d2f543fe29066c26d39c32 (diff) | |
| download | system_core-d01c257f0f19a30178a6d5ec9d6d00d6b702fed3.zip system_core-d01c257f0f19a30178a6d5ec9d6d00d6b702fed3.tar.gz system_core-d01c257f0f19a30178a6d5ec9d6d00d6b702fed3.tar.bz2 | |
am 8f632327: am bb0fbdbe: Merge "logd: liblog: 64-bit issues"
* commit '8f63232712e318da88d2f543fe29066c26d39c32':
logd: liblog: 64-bit issues
Diffstat (limited to 'liblog/logd_write.c')
| -rw-r--r-- | liblog/logd_write.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/liblog/logd_write.c b/liblog/logd_write.c index d3ee167..c3efc33 100644 --- a/liblog/logd_write.c +++ b/liblog/logd_write.c @@ -117,8 +117,11 @@ static int __write_to_log_kernel(log_id_t log_id, struct iovec *vec, size_t nr) newVec[0].iov_base = (unsigned char *) &log_id_buf; newVec[0].iov_len = sizeof_log_id_t; + struct timespec ts; + clock_gettime(CLOCK_REALTIME, &ts); log_time realtime_ts; - clock_gettime(CLOCK_REALTIME, &realtime_ts); + realtime_ts.tv_sec = ts.tv_sec; + realtime_ts.tv_nsec = ts.tv_nsec; newVec[1].iov_base = (unsigned char *) &realtime_ts; newVec[1].iov_len = sizeof(log_time); |
