Loading cmds/statsd/src/logd/LogEvent.cpp +4 −4 Original line number Original line Diff line number Diff line Loading @@ -36,13 +36,13 @@ using std::string; using android::util::ProtoOutputStream; using android::util::ProtoOutputStream; LogEvent::LogEvent(log_msg& msg) { LogEvent::LogEvent(log_msg& msg) { android_log_context context = mContext = create_android_log_parser(msg.msg() + sizeof(uint32_t), msg.len() - sizeof(uint32_t)); create_android_log_parser(msg.msg() + sizeof(uint32_t), msg.len() - sizeof(uint32_t)); mTimestampNs = msg.entry_v1.sec * NS_PER_SEC + msg.entry_v1.nsec; mTimestampNs = msg.entry_v1.sec * NS_PER_SEC + msg.entry_v1.nsec; mLogUid = msg.entry_v4.uid; mLogUid = msg.entry_v4.uid; init(context); init(mContext); if (context) { if (mContext) { android_log_destroy(&context); android_log_destroy(&mContext); } } } } Loading Loading
cmds/statsd/src/logd/LogEvent.cpp +4 −4 Original line number Original line Diff line number Diff line Loading @@ -36,13 +36,13 @@ using std::string; using android::util::ProtoOutputStream; using android::util::ProtoOutputStream; LogEvent::LogEvent(log_msg& msg) { LogEvent::LogEvent(log_msg& msg) { android_log_context context = mContext = create_android_log_parser(msg.msg() + sizeof(uint32_t), msg.len() - sizeof(uint32_t)); create_android_log_parser(msg.msg() + sizeof(uint32_t), msg.len() - sizeof(uint32_t)); mTimestampNs = msg.entry_v1.sec * NS_PER_SEC + msg.entry_v1.nsec; mTimestampNs = msg.entry_v1.sec * NS_PER_SEC + msg.entry_v1.nsec; mLogUid = msg.entry_v4.uid; mLogUid = msg.entry_v4.uid; init(context); init(mContext); if (context) { if (mContext) { android_log_destroy(&context); android_log_destroy(&mContext); } } } } Loading